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