2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, gtk2, imlib2, file, lcms2, libexif } :
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation (rec {
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "2.3.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "qiv";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://spiegl.de/qiv/download/${pname}-${version}.tgz";
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-7whf/eLUiwWzZlk55a4eNZ06OBAI+4J2hPfW/UxTNwQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ gtk2 imlib2 file lcms2 libexif ];
|
|
|
|
|
|
|
|
preBuild=''
|
|
|
|
substituteInPlace Makefile --replace /usr/local "$out"
|
|
|
|
substituteInPlace Makefile --replace /man/ /share/man/
|
|
|
|
substituteInPlace Makefile --replace /share/share/ /share/
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Quick image viewer";
|
|
|
|
homepage = "http://spiegl.de/qiv/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
})
|