Subject: [PATCH 1/3] gnu: dragonfly-reverb: Use regex to install binaries.

From: Alexandros Theodotou <[email-masked]>
Date: Mon, 06 Apr 2020 15:13:01 +0100

Hi,

This is done so the build configuration can be inherited (see patch
3/3).

Thanks,
Alex
From 2ffc1efc3b25d41fe40a962b97a721eacb9d6050 Mon Sep 17 00:00:00 2001
From: Alexandros Theodotou <[email-masked]>
Date: Mon, 6 Apr 2020 14:58:22 +0100
Subject: [PATCH 1/3] gnu: dragonfly-reverb: Use regex to install binaries.

* gnu/packages/music.scm (dragonfly-reverb): Use regex for
  installing binaries.
---
 gnu/packages/music.scm | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index ee402bad4d..2db102c1fe 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -5246,8 +5246,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)))
-- 
2.26.0