2021-01-19 07:50:56 +01:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, gtk2, imlib2, file, lcms2, libexif } :
|
2013-01-11 20:24:20 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation (rec {
|
2019-03-16 23:58:58 +01:00
|
|
|
version = "2.3.2";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "qiv";
|
2013-01-11 20:24:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://spiegl.de/qiv/download/${pname}-${version}.tgz";
|
2019-03-16 23:58:58 +01:00
|
|
|
sha256 = "1mc0f2nnas4q0d7zc9r6g4z93i32xlx0p9hl4fn5zkyml24a1q28";
|
2013-01-11 20:24:20 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 23:26:13 +02:00
|
|
|
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/
|
2019-03-16 23:58:58 +01:00
|
|
|
substituteInPlace Makefile --replace /share/share/ /share/
|
2013-01-21 20:03:53 +01:00
|
|
|
'';
|
2013-01-11 20:24:20 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Quick image viewer";
|
2020-04-01 03:11:51 +02: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
|
|
|
};
|
|
|
|
})
|