summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLilah Tascheter <lilah@lunabee.space>2023-07-08 00:11:21 -0500
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-07-10 00:33:58 -0400
commit88027480b537b391b5089fb06889835510f33e59 (patch)
treeb91c943bc6c30f2982ba4c0d4262688e153cc158
parent753428d7939bb5840d9e230215312d4bd5d487d3 (diff)
gnu: tuba: Fix videoplayer crash and webp support.
* gnu/packages/mastodon.scm (tuba)[arguments]<phases: Add lib-vars-wrap phase to set GST_PLUGIN_SYSTEM_PATH and GDK_PIXBUF_MODULE_FILE variables. (tuba)[native-inputs]: Add gdk-pixbuf. (tuba)[inputs]: Add gstreamer, gst-plugins-bad, gst-plugins-base, gst-plugins-good and webp-pixbuf-loader. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
-rw-r--r--gnu/packages/mastodon.scm22
1 files changed, 18 insertions, 4 deletions
diff --git a/gnu/packages/mastodon.scm b/gnu/packages/mastodon.scm
index e5463ae6bf..aa20975597 100644
--- a/gnu/packages/mastodon.scm
+++ b/gnu/packages/mastodon.scm
@@ -33,6 +33,7 @@
#:use-module (gnu packages gettext)
#:use-module (gnu packages glib)
#:use-module (gnu packages gnome)
+ #:use-module (gnu packages gstreamer)
#:use-module (gnu packages gtk)
#:use-module (gnu packages image)
#:use-module (gnu packages pkg-config)
@@ -100,16 +101,28 @@ Features include:
#:configure-flags #~(list "-Ddistro=true")
#:phases
#~(modify-phases %standard-phases
- (add-after 'glib-or-gtk-wrap 'symlink-package
+ (add-after 'glib-or-gtk-wrap 'lib-vars-wrap
+ (lambda _
+ (let ((gstvar "GST_PLUGIN_SYSTEM_PATH")
+ (pixvar "GDK_PIXBUF_MODULE_FILE"))
+ (wrap-program (string-append #$output "/bin/dev.geopjr.Tuba")
+ `(,gstvar ":" suffix (,(getenv gstvar)))
+ `(,pixvar ":" = (,(getenv pixvar)))))))
+ (add-after 'lib-vars-wrap 'symlink-package
(lambda _
(with-directory-excursion (string-append #$output "/bin")
(symlink "dev.geopjr.Tuba" "tuba")))))))
(native-inputs
- (list gettext-minimal
+ (list gdk-pixbuf ; so pixbuf loader cache (for webp) is generated
+ gettext-minimal
`(,glib "bin") ; for glib-compile-resources
pkg-config))
(inputs
- (list gtk
+ (list gst-plugins-bad
+ gst-plugins-base
+ gst-plugins-good
+ gstreamer
+ gtk
gtksourceview
json-glib
libadwaita
@@ -118,7 +131,8 @@ Features include:
libsecret
libwebp
libxml2
- vala))
+ vala
+ webp-pixbuf-loader))
(home-page "https://tuba.geopjr.dev/")
(synopsis "GTK client for Mastodon")
(description "Tuba is a GTK client for Mastodon. It provides a clean,