nixpkgs/pkgs/applications/graphics/viewnior/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
2.1 KiB
Nix
Raw Normal View History

2023-09-30 23:23:36 +02:00
{ lib, stdenv, fetchFromGitHub, fetchpatch, meson, ninja, pkg-config, desktop-file-utils, gtk2, libpng, exiv2, lcms
2019-05-22 13:03:39 +02:00
, intltool, gettext, shared-mime-info, glib, gdk-pixbuf, perl}:
stdenv.mkDerivation rec {
pname = "viewnior";
2021-12-05 18:37:09 +01:00
version = "1.8";
2015-10-04 10:52:40 +02:00
src = fetchFromGitHub {
2020-08-26 00:48:20 +02:00
owner = "hellosiyan";
2015-10-04 10:52:40 +02:00
repo = "Viewnior";
rev = "${pname}-${version}";
2023-09-30 23:23:36 +02:00
hash = "sha256-LTahMmcAqgqviUxR624kTozJGTniAAGWKo1ZqXjoG5M=";
};
2023-09-30 23:23:36 +02:00
patches = [
(fetchpatch {
name = "viewnior-1.8-change-exiv2-AutoPtr-to-unique_ptr.patch";
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/viewnior/files/viewnior-1.8-change-exiv2-AutoPtr-to-unique_ptr.patch?id=002882203ad6a2b08ce035a18b95844a9f4b85d0";
hash = "sha256-O3/d7qMiOsYJmz7ekoLM6oaHcuYjEbAfPFuDUWSybfE=";
})
(fetchpatch {
name = "viewnior-1.8-add-support-for-exiv-0.28.0-errors.patch";
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/viewnior/files/viewnior-1.8-add-support-for-exiv-0.28.0-errors.patch?id=002882203ad6a2b08ce035a18b95844a9f4b85d0";
hash = "sha256-Zjc4CIlelAkbyvX2F1yo/qJjUajtAgF4+FoHWFEIPWY=";
})
];
2020-08-26 00:48:20 +02:00
nativeBuildInputs = [
meson
ninja
pkg-config
2020-08-26 00:48:20 +02:00
desktop-file-utils
intltool
gettext
];
buildInputs = [
gtk2
libpng
exiv2
lcms
shared-mime-info
glib
gdk-pixbuf
perl
];
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).
'';
2020-08-26 00:48:20 +02:00
license = licenses.gpl3;
homepage = "https://siyanpanayotov.com/project/viewnior/";
2020-08-26 00:48:20 +02:00
maintainers = with maintainers; [ smironov artturin ];
platforms = platforms.gnu ++ platforms.linux;
2024-02-11 03:19:15 +01:00
mainProgram = "viewnior";
};
}