mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-19 10:34:54 +00:00
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:
parent
351d5e9f73
commit
5bd4984cd3
@ -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/";
|
||||
|
Loading…
Reference in New Issue
Block a user