nixpkgs/pkgs/applications/graphics/qiv/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
768 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config, gtk2, imlib2, file, lcms2, libexif } :
2013-01-11 19:24:20 +00:00
stdenv.mkDerivation (rec {
2023-02-01 14:59:49 +00:00
version = "2.3.3";
pname = "qiv";
2013-01-11 19:24:20 +00:00
src = fetchurl {
url = "https://spiegl.de/qiv/download/${pname}-${version}.tgz";
2023-02-01 14:59:49 +00:00
sha256 = "sha256-7whf/eLUiwWzZlk55a4eNZ06OBAI+4J2hPfW/UxTNwQ=";
2013-01-11 19:24:20 +00:00
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk2 imlib2 file lcms2 libexif ];
2013-01-11 19:24:20 +00:00
preBuild=''
substituteInPlace Makefile --replace /usr/local "$out"
substituteInPlace Makefile --replace /man/ /share/man/
2019-03-16 22:58:58 +00:00
substituteInPlace Makefile --replace /share/share/ /share/
'';
2013-01-11 19:24:20 +00:00
meta = with lib; {
description = "Quick image viewer";
homepage = "http://spiegl.de/qiv/";
2018-08-22 21:58:11 +00:00
license = licenses.gpl2;
platforms = platforms.linux;
2013-01-11 19:24:20 +00:00
};
})