2016-09-11 23:24:51 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk2, imlib2, file, lcms2, libexif } :
|
2013-01-11 20:24:20 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation (rec {
|
2014-06-13 11:36:56 +02:00
|
|
|
version = "2.3.1";
|
|
|
|
name = "qiv-${version}";
|
2013-01-11 20:24:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://spiegl.de/qiv/download/${name}.tgz";
|
2014-06-13 11:36:56 +02:00
|
|
|
sha256 = "1rlf5h67vhj7n1y7jqkm9k115nfnzpwngj3kzqsi2lg676srclv7";
|
2013-01-11 20:24:20 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ gtk2 imlib2 file lcms2 libexif ];
|
2013-01-11 20:24:20 +01:00
|
|
|
|
2013-01-21 20:03:53 +01:00
|
|
|
preBuild=''
|
|
|
|
substituteInPlace Makefile --replace /usr/local "$out"
|
|
|
|
substituteInPlace Makefile --replace /man/ /share/man/
|
|
|
|
'';
|
2013-01-11 20:24:20 +01:00
|
|
|
|
2018-08-22 23:58:11 +02:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Quick image viewer";
|
2013-01-11 20:24:20 +01:00
|
|
|
homepage = http://spiegl.de/qiv/;
|
2014-06-13 11:36:56 +02:00
|
|
|
inherit version;
|
2018-08-22 23:58:11 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2013-01-11 20:24:20 +01:00
|
|
|
};
|
|
|
|
})
|