4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
50 lines
1.3 KiB
Nix
50 lines
1.3 KiB
Nix
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkgconfig, desktop-file-utils, gtk2, libpng, exiv2, lcms
|
|
, intltool, gettext, shared-mime-info, glib, gdk-pixbuf, perl}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "viewnior";
|
|
version = "1.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hellosiyan";
|
|
repo = "Viewnior";
|
|
rev = "${pname}-${version}";
|
|
sha256 = "0y4hk3vq8psba5k615w18qj0kbdfp5w0lm98nv5apy6hmcpwfyig";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkgconfig
|
|
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).
|
|
'';
|
|
license = licenses.gpl3;
|
|
homepage = "http://siyanpanayotov.com/project/viewnior/";
|
|
maintainers = with maintainers; [ smironov artturin ];
|
|
platforms = platforms.gnu ++ platforms.linux;
|
|
};
|
|
}
|