summary refs log tree commit diff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-03-05 00:14:04 +0100
committerRicardo Wurmus <rekado@elephly.net>2023-03-05 00:14:04 +0100
commita4fca7884c3ca90d85302d5583485a2a2056150d (patch)
treed643ef685f5de1a81ab0482e9f093058cb6eb7e3
parent21f9edb051a2ae618bb4131582efbf32e80d9253 (diff)
downloadguix-a4fca7884c3ca90d85302d5583485a2a2056150d.tar.gz
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.
-rw-r--r--gnu/packages/sugar.scm12
1 files changed, 9 insertions, 3 deletions
diff --git a/gnu/packages/sugar.scm b/gnu/packages/sugar.scm
index 892ccf246f..4ebdd22077 100644
--- a/gnu/packages/sugar.scm
+++ b/gnu/packages/sugar.scm
@@ -262,10 +262,15 @@ activities and other Sugar components.")
              (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 @@ activities and other Sugar components.")
                     (search-input-file outputs "bin/datastore-service"))))))))
     (inputs
      (list bash-minimal
+           coreutils
            python
            sugar-toolkit-gtk3))
     (propagated-inputs