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

29 lines
786 B
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, gtk2, imlib2, file, lcms2, libexif } :
2013-01-11 19:24:20 +00:00
stdenv.mkDerivation (rec {
2019-03-16 22:58:58 +00:00
version = "2.3.2";
name = "qiv-${version}";
2013-01-11 19:24:20 +00:00
src = fetchurl {
url = "https://spiegl.de/qiv/download/${name}.tgz";
2019-03-16 22:58:58 +00:00
sha256 = "1mc0f2nnas4q0d7zc9r6g4z93i32xlx0p9hl4fn5zkyml24a1q28";
2013-01-11 19:24:20 +00:00
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gtk2 imlib2 file lcms2 libexif ];
2013-01-11 19:24:20 +00:00
preBuild=''
substituteInPlace Makefile --replace /usr/local "$out"
substituteInPlace Makefile --replace /man/ /share/man/
2019-03-16 22:58:58 +00:00
substituteInPlace Makefile --replace /share/share/ /share/
'';
2013-01-11 19:24:20 +00:00
2018-08-22 21:58:11 +00:00
meta = with stdenv.lib; {
description = "Quick image viewer";
2013-01-11 19:24:20 +00:00
homepage = http://spiegl.de/qiv/;
inherit version;
2018-08-22 21:58:11 +00:00
license = licenses.gpl2;
platforms = platforms.linux;
2013-01-11 19:24:20 +00:00
};
})