nongnu: anytype: Update to 0.38.

* nongnu/packages/productivity.scm (anytype): Update to 0.38.
[arguments]: Add strip-python phase.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
Co-authored-by: John Kehayias <john.kehayias@protonmail.com>
This commit is contained in:
Giacomo Leidi 2024-01-31 17:55:06 +01:00 committed by John Kehayias
parent f9ed62f37d
commit ae314a6eaa
No known key found for this signature in database
GPG key ID: 499097AE5EA815D9

View file

@ -24,17 +24,17 @@
(define-public anytype (define-public anytype
(package (package
(name "anytype") (name "anytype")
(version "0.37.3") (version "0.38")
(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=142685264")) "&key=desktop&id=148487107"))
(file-name (string-append "anytype-" version ".deb")) (file-name (string-append "anytype-" version ".deb"))
(sha256 (sha256
(base32 (base32
"197v4dsn21yfi9dhcrqdznz3vfzicd79fc4abbpifacgb4fxcxq8")))) "1xc57ppk3l16mq2a53scf79m8hx43x21kac96ws66awlkz14swc7"))))
(build-system chromium-binary-build-system) (build-system chromium-binary-build-system)
(arguments (arguments
(list (list
@ -58,6 +58,11 @@
("usr/share/" "/share")) ("usr/share/" "/share"))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'binary-unpack 'strip-python
(lambda _
(delete-file
(string-append "opt/Anytype/resources/app.asar.unpacked/"
"node_modules/keytar/build/node_gyp_bins/python3"))))
(add-before 'install 'patch-assets (add-before 'install 'patch-assets
(lambda _ (lambda _
(let* ((bin (string-append #$output "/bin")) (let* ((bin (string-append #$output "/bin"))