about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/graphics/qiv/default.nix
blob: ce08e2b1be92199dfd75db8a46b7b169957df441 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchurl, pkgconfig, gtk2, imlib2, file, lcms2, libexif } :

stdenv.mkDerivation (rec {
  version = "2.3.2";
  name = "qiv-${version}";

  src = fetchurl {
    url = "https://spiegl.de/qiv/download/${name}.tgz";
    sha256 = "1mc0f2nnas4q0d7zc9r6g4z93i32xlx0p9hl4fn5zkyml24a1q28";
  };

  nativeBuildInputs = [ pkgconfig ];
  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/
  '';

  meta = with stdenv.lib; {
    description = "Quick image viewer";
    homepage = http://spiegl.de/qiv/;
    inherit version;
    license = licenses.gpl2;
    platforms = platforms.linux;
  };
})