diff --git a/pkgs/applications/graphics/viewnior/default.nix b/pkgs/applications/graphics/viewnior/default.nix index 70d28b6e5aee6..227c57a17d8e5 100644 --- a/pkgs/applications/graphics/viewnior/default.nix +++ b/pkgs/applications/graphics/viewnior/default.nix @@ -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, wrapGAppsHook, webp-pixbuf-loader, gnome}: stdenv.mkDerivation rec { pname = "viewnior-gtk3"; @@ -22,6 +22,7 @@ stdenv.mkDerivation rec { desktop-file-utils intltool gettext + wrapGAppsHook ]; buildInputs = [ @@ -35,6 +36,16 @@ stdenv.mkDerivation rec { perl ]; + postInstall = '' + export GDK_PIXBUF_MODULE_FILE="${ + gnome._gdkPixbufCacheBuilder_DO_NOT_USE { + extraLoaders = [ + webp-pixbuf-loader + ]; + } + }" + ''; + meta = with lib; { description = "Fast and simple image viewer"; longDescription =