Commit 40a4bd08 authored by Artturin's avatar Artturin
Browse files

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.
```
parent 286a40b2
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
{ 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 =