gnu: amsynth: Find external commands.
authorTobias Geerinckx-Rice <me@tobias.gr>
Mon, 9 Nov 2020 21:26:19 +0000 (22:26 +0100)
committerTobias Geerinckx-Rice <me@tobias.gr>
Tue, 10 Nov 2020 19:04:59 +0000 (20:04 +0100)
* gnu/packages/music.scm (amsynth)[arguments]: Add a ‘patch-file-names’
phase.
[inputs]: Add unzip and which.

gnu/packages/music.scm

index 3d2133b..0728144 100644 (file)
@@ -1804,6 +1804,16 @@ special variant of additive synthesis.")
         (base32
          "1882pfcmf3rqg3vd4qflzkppcv158d748i603spqjbxqi8z7x7w0"))))
     (build-system gnu-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-file-names
+           (lambda _
+             (substitute* "src/GUI/editor_pane.c"
+               (("/usr/bin/unzip") (which "unzip")))
+             (substitute* "src/GUI/GUI.cc"
+               (("/usr/bin/which") (which "which")))
+             #t)))))
     (inputs
      `(("alsa-lib" ,alsa-lib)
        ("gtk+" ,gtk+-2)
@@ -1811,7 +1821,10 @@ special variant of additive synthesis.")
        ("jack" ,jack-1)
        ("lash" ,lash)
        ("libsndfile" ,libsndfile)
-       ("lv2" ,lv2)))
+       ("lv2" ,lv2)
+       ;; External commands invoked at run time.
+       ("unzip" ,unzip)
+       ("which" ,which)))
     (native-inputs
      `(("intltool" ,intltool)
        ("pkg-config" ,pkg-config)))