gnu: sugar-datastore: Patch reference to md5sum.

* gnu/packages/sugar.scm (sugar-datastore)[inputs]: Add coreutils.
[arguments]: Rename phase 'patch-reference-to-du to 'patch-tool-references and
patch reference to md5sum.
This commit is contained in:
Ricardo Wurmus 2023-03-05 00:14:04 +01:00
parent 21f9edb051
commit a4fca7884c
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -262,10 +262,15 @@ (define-public sugar-datastore
(substitute* "autogen.sh"
(("^\"\\$srcdir/configure" m)
(string-append "#" m)))))
(add-after 'unpack 'patch-reference-to-du
(lambda _
(add-after 'unpack 'patch-tool-references
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "src/carquinyol/datastore.py"
(("/usr/bin/du") (which "du")))))
(("/usr/bin/du") (which "du")))
(substitute* "src/carquinyol/optimizer.py"
(("'md5sum'")
(string-append "'"
(search-input-file inputs "/bin/md5sum")
"'")))))
(add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
(lambda* (#:key inputs outputs #:allow-other-keys)
(for-each
@ -279,6 +284,7 @@ (define-public sugar-datastore
(search-input-file outputs "bin/datastore-service"))))))))
(inputs
(list bash-minimal
coreutils
python
sugar-toolkit-gtk3))
(propagated-inputs