gnu: solfege: Fix runtime error.

This fixes <https://issues.guix.gnu.org/75623>.

* gnu/packages/music.scm (solfege)[inputs]: Add python-pycairo.
[propagated-inputs]: Add timidity++.
[arguments]<wrap-program>: Wrap solfege with GI_TYPELIB_PATH.

Change-Id: I30b38cec5ded514b35aeccd3e2fb0f94b96308d9
This commit is contained in:
宋文武 2025-01-17 14:05:11 +08:00
parent ff4d0a129d
commit cd12fa4e20
No known key found for this signature in database
GPG key ID: D415BF253B515976

View file

@ -2253,16 +2253,21 @@ (define-public solfege
(add-after 'install 'wrap-program
(lambda* (#:key outputs #:allow-other-keys)
;; Make sure 'solfege' runs with the correct PYTHONPATH.
(let ((path (getenv "GUIX_PYTHONPATH")))
(let ((python-path (getenv "GUIX_PYTHONPATH"))
(typelib-path (getenv "GI_TYPELIB_PATH")))
(wrap-program (search-input-file outputs "bin/solfege")
`("GUIX_PYTHONPATH" ":" prefix (,path)))))))))
`("GUIX_PYTHONPATH" ":" prefix (,python-path))
`("GI_TYPELIB_PATH" ":" prefix (,typelib-path)))))))))
(inputs
(list bash-minimal
python-wrapper
python-pycairo
python-pygobject
gettext-minimal
gtk+
lilypond))
(propagated-inputs
(list timidity++)) ; default player
(native-inputs
(list autoconf
automake