1 { lib, stdenv, fetchFromGitHub, fetchpatch, meson, ninja, pkg-config, desktop-file-utils, gtk3, libpng, exiv2, lcms
2 , intltool, gettext, shared-mime-info, glib, gdk-pixbuf, perl, wrapGAppsHook3, webp-pixbuf-loader, gnome, librsvg}:
4 stdenv.mkDerivation rec {
5 pname = "viewnior-gtk3";
6 version = "1.8-unstable-2023-11-23";
8 src = fetchFromGitHub {
13 # https://github.com/hellosiyan/Viewnior/pull/142
14 rev = "23ce6e5630b24509d8009f17a833ad9e59b85fab";
15 hash = "sha256-+/f0+og1Dd7eJK7P83+q4lf4SjzW2g6qNk8ZTxNAuDA=";
40 export GDK_PIXBUF_MODULE_FILE="${
41 gnome._gdkPixbufCacheBuilder_DO_NOT_USE {
49 # gtk3 viewnior can be launched in wayland mode and does so by default
50 # but moving around in a zoomed in image doesn't work
52 --set-default GDK_BACKEND x11
57 description = "Fast and simple image viewer";
59 Viewnior is insipred by big projects like Eye of Gnome, because of it's
60 usability and richness,and by GPicView, because of it's lightweight design and
61 minimal interface. So here comes Viewnior - small and light, with no compromise
62 with the quality of it's functions. The program is made with better integration
63 in mind (follows Gnome HIG2).
65 license = licenses.gpl3;
66 homepage = "https://siyanpanayotov.com/project/viewnior/";
67 maintainers = with maintainers; [ smironov artturin ];
68 platforms = platforms.gnu ++ platforms.linux;
69 mainProgram = "viewnior";