1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: showtime: Harden wrapper a bit.

* gnu/packages/gnome.scm (showtime) [#:phases]
{gi-wrap}: Wrap libgstgtk4.so first in GST_PLUGIN_SYSTEM_PATH.
[inputs]: Add gst-plugins-base and gst-plugins-good.  Remove gst-plugins-rs.

Change-Id: I190456ca08f3cdfd3128c1823364a646a67fd0cd
This commit is contained in:
Maxim Cournoyer
2026-03-28 22:12:25 +09:00
parent 5deb680587
commit e4d9dfa643

View File

@@ -6543,12 +6543,22 @@ discovery protocols.")
(add-after 'add-install-to-pythonpath 'wrap-python
(assoc-ref py:%standard-phases 'wrap))
(add-after 'wrap-python 'gi-wrap
(lambda _
(lambda* (#:key inputs #:allow-other-keys)
(wrap-program (string-append #$output "/bin/showtime")
`("GI_TYPELIB_PATH" prefix
(,(getenv "GI_TYPELIB_PATH")))
`("GST_PLUGIN_SYSTEM_PATH" prefix
(,(getenv "GST_PLUGIN_SYSTEM_PATH")))))))))
,(map (lambda (x)
(dirname (search-input-file
inputs
(string-append "lib/gstreamer-1.0/" x))))
;; libgstgtk4.so appears to be sensitive to ordering;
;; ensure it comes first in the plugin path.
(list "libgstgtk4.so" ;gst-plugins-rs:video
"libgstopengl.so" ;gst-plugins-base
"libgstmatroska.so" ;gst-plugins-good
"libgstmpegpsdemux.so"))))))))) ;gst-plugins-bad
(native-inputs
(list blueprint-compiler
desktop-file-utils
@@ -6559,8 +6569,9 @@ discovery protocols.")
(inputs
(list bash-minimal
gstreamer
gst-plugins-base
gst-plugins-bad ;for GstPlay
gst-plugins-rs
gst-plugins-good
`(,gst-plugins-rs "video")
gobject-introspection ;for cairo-1.0.typelib
gtk