nongnu: anytype: Update to 0.37.3.

* nongnu/packages/productivity.scm (anytype): Update to 0.37.3;
[arguments]<phases>: avoid hardcoding the icon path in anytype.desktop.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
This commit is contained in:
Giacomo Leidi 2024-01-06 15:09:03 +01:00 committed by Jonathan Brielmaier
parent 1f91ecd3c0
commit f325d88cb6
No known key found for this signature in database
GPG key ID: ECFC83988B4E4B9F

View file

@ -24,17 +24,17 @@
(define-public anytype (define-public anytype
(package (package
(name "anytype") (name "anytype")
(version "0.36.0") (version "0.37.3")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (uri
(string-append "https://download.anytype.io?action=download" (string-append "https://download.anytype.io?action=download"
"&key=desktop&id=136705969")) "&key=desktop&id=142685264"))
(file-name (string-append "anytype-" version ".deb")) (file-name (string-append "anytype-" version ".deb"))
(sha256 (sha256
(base32 (base32
"17cs4w3k7nmjav873wwzpxb2dz4mp2zgkpz1karp3x2mxan0x2i3")))) "197v4dsn21yfi9dhcrqdznz3vfzicd79fc4abbpifacgb4fxcxq8"))))
(build-system chromium-binary-build-system) (build-system chromium-binary-build-system)
(arguments (arguments
(list (list
@ -61,12 +61,10 @@
(add-before 'install 'patch-assets (add-before 'install 'patch-assets
(lambda _ (lambda _
(let* ((bin (string-append #$output "/bin")) (let* ((bin (string-append #$output "/bin"))
(icon (string-append #$output "/share/icons/hicolor/0x0/apps/anytype.png"))
(usr/share "./usr/share") (usr/share "./usr/share")
(old-exe "/opt/Anytype/anytype") (old-exe "/opt/Anytype/anytype")
(exe (string-append bin "/anytype"))) (exe (string-append bin "/anytype")))
(substitute* (string-append usr/share "/applications/anytype.desktop") (substitute* (string-append usr/share "/applications/anytype.desktop")
(("^Icon=anytype") (string-append "Icon=" icon))
(((string-append "^Exec=" old-exe)) (string-append "Exec=" exe)))))) (((string-append "^Exec=" old-exe)) (string-append "Exec=" exe))))))
(add-before 'install-wrapper 'symlink-entrypoint (add-before 'install-wrapper 'symlink-entrypoint
(lambda _ (lambda _