mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
72 lines
2.0 KiB
Nix
72 lines
2.0 KiB
Nix
{ lib, stdenv, fetchFromGitHub, fetchpatch, meson, ninja, pkg-config, desktop-file-utils, gtk3, libpng, exiv2, lcms
|
|
, intltool, gettext, shared-mime-info, glib, gdk-pixbuf, perl, wrapGAppsHook3, webp-pixbuf-loader, gnome, librsvg}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "viewnior-gtk3";
|
|
version = "1.8-unstable-2023-11-23";
|
|
|
|
src = fetchFromGitHub {
|
|
#owner = "hellosiyan";
|
|
#repo = "Viewnior";
|
|
owner = "Artturin";
|
|
repo = "Viewnior";
|
|
# https://github.com/hellosiyan/Viewnior/pull/142
|
|
rev = "23ce6e5630b24509d8009f17a833ad9e59b85fab";
|
|
hash = "sha256-+/f0+og1Dd7eJK7P83+q4lf4SjzW2g6qNk8ZTxNAuDA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
desktop-file-utils
|
|
intltool
|
|
gettext
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk3
|
|
libpng
|
|
exiv2
|
|
lcms
|
|
shared-mime-info
|
|
glib
|
|
gdk-pixbuf
|
|
perl
|
|
];
|
|
|
|
postInstall = ''
|
|
export GDK_PIXBUF_MODULE_FILE="${
|
|
gnome._gdkPixbufCacheBuilder_DO_NOT_USE {
|
|
extraLoaders = [
|
|
webp-pixbuf-loader
|
|
librsvg
|
|
];
|
|
}
|
|
}"
|
|
|
|
# gtk3 viewnior can be launched in wayland mode and does so by default
|
|
# but moving around in a zoomed in image doesn't work
|
|
gappsWrapperArgs+=(
|
|
--set-default GDK_BACKEND x11
|
|
)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Fast and simple image viewer";
|
|
longDescription = ''
|
|
Viewnior is insipred by big projects like Eye of Gnome, because of it's
|
|
usability and richness,and by GPicView, because of it's lightweight design and
|
|
minimal interface. So here comes Viewnior - small and light, with no compromise
|
|
with the quality of it's functions. The program is made with better integration
|
|
in mind (follows Gnome HIG2).
|
|
'';
|
|
license = licenses.gpl3;
|
|
homepage = "https://siyanpanayotov.com/project/viewnior/";
|
|
maintainers = with maintainers; [ smironov artturin ];
|
|
platforms = platforms.gnu ++ platforms.linux;
|
|
mainProgram = "viewnior";
|
|
};
|
|
}
|