gnu: quodlibet: Correct wrappers.

* gnu/packages/music.scm (quodlibet)[#:phases]: Rename ‘wrap-gi-typelib’ to
‘wrap-extra-paths’.  Use ‘=’ for GI_TYPELIB_PATH.  Add
‘GST_PLUGIN_SYSTEM_PATH’ with suffix binding.
This commit is contained in:
Liliana Marie Prikler 2022-05-30 20:57:37 +02:00
parent fed51b2614
commit df43e8d45c
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -6919,14 +6919,17 @@ (define-public quodlibet
(format #t "test suite not run~%"))))
(add-after 'install 'glib-or-gtk-wrap ; ensure icons loaded
(assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))
(add-after 'install 'wrap-gi-typelib ; GObject Introspection
(add-after 'install 'wrap-extra-paths
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))
(gi-typelib-path (getenv "GI_TYPELIB_PATH")))
(for-each (lambda (prog)
(wrap-program (string-append out "/bin/" prog)
`("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
'("exfalso" "quodlibet"))))))))
(gi-typelib-path (getenv "GI_TYPELIB_PATH"))
(gst-plugins-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
(for-each
(lambda (prog)
(wrap-program (string-append out "/bin/" prog)
`("GI_TYPELIB_PATH" ":" = (,gi-typelib-path))
`("GST_PLUGIN_SYSTEM_PATH" ":" suffix (,gst-plugins-path))))
'("exfalso" "quodlibet"))))))))
(native-inputs (list xvfb-run gettext-minimal))
(inputs
(list adwaita-icon-theme