gnu: helm: fix not finding Factory Presets

* gnu/packages/music.scm (helm): Fix not finding Factory Presets.
  This change fixes hardcoded paths so that Factory Presets can be found.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
Sughosha via Guix-patches via 2022-10-11 18:34:21 +00:00 committed by Nicolas Goaziou
parent d231651696
commit 6db22e5262
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -6140,6 +6140,11 @@ (define-public helm
(substitute* "Makefile"
(("/usr") ""))
#t))
(add-after 'unpack 'fix-hardcoded-paths
(lambda* (#:key outputs #:allow-other-keys)
(substitute* (list "src/common/load_save.cpp"
"src/editor_sections/patch_browser.cpp")
(("/usr") (assoc-ref outputs "out")))))
(delete 'configure))))
(inputs
`(("alsa-lib" ,alsa-lib)