viewnior: add webp support
and fix ``` (viewnior:2739789): Gtk-WARNING **: 23:12:19.403: Could not load a pixbuf from icon theme. This may indicate that pixbuf loaders or the mime database could not be found. ```
This commit is contained in:
parent
286a40b27c
commit
40a4bd08fe
@ -1,5 +1,5 @@
|
||||
{ lib, stdenv, fetchFromGitHub, fetchpatch, meson, ninja, pkg-config, desktop-file-utils, gtk3, libpng, exiv2, lcms
|
||||
, intltool, gettext, shared-mime-info, glib, gdk-pixbuf, perl}:
|
||||
, intltool, gettext, shared-mime-info, glib, gdk-pixbuf, perl, wrapGAppsHook3, webp-pixbuf-loader, gnome, librsvg}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "viewnior-gtk3";
|
||||
@ -22,6 +22,7 @@ stdenv.mkDerivation rec {
|
||||
desktop-file-utils
|
||||
intltool
|
||||
gettext
|
||||
wrapGAppsHook3
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
@ -35,6 +36,17 @@ stdenv.mkDerivation rec {
|
||||
perl
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
export GDK_PIXBUF_MODULE_FILE="${
|
||||
gnome._gdkPixbufCacheBuilder_DO_NOT_USE {
|
||||
extraLoaders = [
|
||||
webp-pixbuf-loader
|
||||
librsvg
|
||||
];
|
||||
}
|
||||
}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Fast and simple image viewer";
|
||||
longDescription =
|
||||
|
Loading…
Reference in New Issue
Block a user