[bug#74723,01/19] gnu: lmms: Fix building carla plugins.

Message ID 83ef297dbe104047b843ea7aaf0da45d9dfe404b.1733563475.git.sughosha@disroot.org
State New
Headers
Series gnu: lmms, carla: New features, fixes and updates. |

Commit Message

Sughosha Dec. 7, 2024, 12:20 p.m. UTC
  * gnu/packages/music.scm (lmms)[source]: Add snippet to fix including carla
headers.

Change-Id: I22a33e889b49567dc71d21f5e5893341564afbf5
---
 gnu/packages/music.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
  

Patch

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index cd9cdbdacd..b72e607a25 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -5170,7 +5170,16 @@  (define-public lmms
        (file-name (git-file-name name version))
        (sha256
         (base32
-         "11xgf461cnmq0jkgdgx5bddi87ammpik4whg1m4fcvd3i0d5i601"))))
+         "11xgf461cnmq0jkgdgx5bddi87ammpik4whg1m4fcvd3i0d5i601"))
+       (modules '((guix build utils)))
+       ;; Include carla headers from the system.
+       (snippet
+        '(substitute* "plugins/carlabase/carla.h"
+           (("\"CarlaNativePlugin\\.h\"")
+            "<carla/includes/CarlaNativePlugin.h>")
+           (("\"CarlaBackend\\.h\"") "<carla/CarlaBackend.h>")
+           (("\"CarlaNative\\.h\"") "<carla/includes/CarlaNative.h>")
+           (("\"CarlaUtils\\.h\"") "<carla/CarlaUtils.h>")))))
     (build-system cmake-build-system)
     (arguments
      (list