summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexandros Theodotou <alex@zrythm.org>2020-07-08 21:06:09 +0100
committerEfraim Flashner <efraim@flashner.co.il>2020-07-12 21:24:42 +0300
commitad020ee2a8aa95f2578a5305b5d0b84cb15d3629 (patch)
tree58660ab99f4e4876d81b37c77bd2dd4083d8dd56
parentf2096c7aa92e8c8af5ec96b99cbabeb191164de1 (diff)
downloadguix-ad020ee2a8aa95f2578a5305b5d0b84cb15d3629.tar.gz
gnu: dragonfly-reverb: Use regex to install bin.
* gnu/packages/music.scm (dragonfly-reverb)[arguments]: Use regex to
  install the binaries.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
-rw-r--r--gnu/packages/music.scm11
1 files changed, 9 insertions, 2 deletions
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 4c1e16dcc5..0e5ca65242 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -5295,8 +5295,15 @@ plugin support, JACK support and chord assistance.")
                                     (string-append lv2 "/" (basename file))))
                 (find-files "bin" "\\.lv2$" #:directories? #t))
                ;; Install executables.
-               (install-file "bin/DragonflyRoomReverb" bin)
-               (install-file "bin/DragonflyHallReverb" bin)
+               (for-each
+                 (lambda (file)
+                   (install-file file bin))
+                 (find-files "bin"
+                             (lambda (name stat)
+                               (and
+                                 (equal? (dirname name) "bin")
+                                 (not (string-suffix? ".so" name))
+                                 (not (string-suffix? ".lv2" name))))))
                #t))))))
     (native-inputs
      `(("pkg-config" ,pkg-config)))