tuba: add webp support with webp-pixbuf-loader

Fixes "Tuba-WARNING: Image.vala:68: Failed to download image at
"https://example.com/avatar.webp": Unrecognized image file format"

Useful for Misskey instances using webp avatars by default.

See: https://github.com/GeopJr/Tuba/issues/708
And: https://github.com/NixOS/nixpkgs/issues/321983
This commit is contained in:
Donovan Glover 2024-07-07 17:35:21 -04:00
parent 351d5e9f73
commit 5bd4984cd3
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -13,14 +13,17 @@
, json-glib
, glib
, glib-networking
, gnome
, gobject-introspection
, gtksourceview5
, libxml2
, libgee
, librsvg
, libsoup_3
, libsecret
, libwebp
, libspelling
, webp-pixbuf-loader
, icu
, gst_all_1
, clapper
@ -86,6 +89,17 @@ stdenv.mkDerivation rec {
updateScript = nix-update-script { };
};
# Pull in WebP support for avatars from Misskey instances.
# In postInstall to run before gappsWrapperArgsHook.
postInstall = ''
export GDK_PIXBUF_MODULE_FILE="${gnome._gdkPixbufCacheBuilder_DO_NOT_USE {
extraLoaders = [
librsvg
webp-pixbuf-loader
];
}}"
'';
meta = {
description = "Browse the Fediverse";
homepage = "https://tuba.geopjr.dev/";