Skip to content

Commit

Permalink
viewnior: add webp support
Browse files Browse the repository at this point in the history
  • Loading branch information
Artturin committed Oct 19, 2024
1 parent 286a40b commit 8e44736
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion pkgs/applications/graphics/viewnior/default.nix
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -22,6 +22,7 @@ stdenv.mkDerivation rec {
desktop-file-utils
intltool
gettext
wrapGAppsHook
];

buildInputs = [
Expand All @@ -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 =
Expand Down

0 comments on commit 8e44736

Please sign in to comment.