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 {
|
|
|
|
version = "2.3.2";
|
|
|
|
pname = "qiv";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://spiegl.de/qiv/download/${pname}-${version}.tgz";
|
|
|
|
sha256 = "1mc0f2nnas4q0d7zc9r6g4z93i32xlx0p9hl4fn5zkyml24a1q28";
|
|
|
|
};
|
|
|
|
|
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/";
|
|
|
|
inherit version;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
})
|