gnu: ir: Fix build.

* gnu/packages/audio.scm (ir)[arguments]: Add phase "fix-type".
This commit is contained in:
Ricardo Wurmus 2020-12-27 00:14:46 +01:00
parent 3d5806ed6c
commit 63ebc380a8
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -1942,8 +1942,15 @@ (define-public ir
(list (string-append "PREFIX=" (assoc-ref %outputs "out")) (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
(string-append "INSTDIR=" (string-append "INSTDIR="
(assoc-ref %outputs "out") "/lib/lv2")) (assoc-ref %outputs "out") "/lib/lv2"))
#:phases (modify-phases %standard-phases #:phases
(delete 'configure)))) ; no configure script (modify-phases %standard-phases
(delete 'configure) ; no configure script
;; See https://github.com/tomszilagyi/ir.lv2/pull/20
(add-after 'unpack 'fix-type
(lambda _
(substitute* '("ir_gui.cc" "lv2_ui.h")
(("_LV2UI_Descriptor") "LV2UI_Descriptor"))
#t)))))
(inputs (inputs
`(("libsndfile" ,libsndfile) `(("libsndfile" ,libsndfile)
("libsamplerate" ,libsamplerate) ("libsamplerate" ,libsamplerate)