summary refs log tree commit diff
path: root/pkgs/applications/graphics/pqiv/default.nix
blob: 3fd9d47374a37b156e9e2e43589c18f5a1e66d9e (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
{ stdenv, fetchurl, getopt, which, pkgconfig, gtk } :

stdenv.mkDerivation (rec {
  name = "pqiv-0.12";

  src = fetchurl {
    url = "https://github.com/downloads/phillipberndt/pqiv/${name}.tbz";
    sha256 = "646c69f2f4e7289913f6b8e8ae984befba9debf0d2b4cc8af9955504a1fccf1e";
  };

  buildInputs = [ getopt which pkgconfig gtk ];

  preConfigure=''
    substituteInPlace configure --replace /bin/bash "$shell"
    sed -i -e 's|$(tempfile -s.*)|temp.c|' -e 's|tempfile|mktemp|' configure
  '';

  unpackCmd = ''
    tar -xf ${src}
  '';

  meta = {
    description = "Rewrite of qiv (quick image viewer)";
    homepage = http://www.pberndt.com/Programme/Linux/pqiv;
  };
})