summary refs log tree commit diff
path: root/pkgs/applications/graphics/pqiv/default.nix
blob: e13ea97cab869ac11ac282363e464cbba95920c0 (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.8";

  src = fetchurl {
    url = "http://www.pberndt.com/raw/Programme/Linux/pqiv/_download/${name}.tbz";
    sha256 = "365332bab4b13ca56da6935e7155af20658e67d323808942dce23e880466f66d";
  };

  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;
  };
})