Skip to content

Commit

Permalink
viewnior: add webp support
Browse files Browse the repository at this point in the history
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.
```
  • Loading branch information
Artturin committed Oct 19, 2024
1 parent 286a40b commit fd2eced
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 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, librsvg}:

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,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 =
Expand Down

0 comments on commit fd2eced

Please sign in to comment.