2008-05-27 15:05:16 +00:00
|
|
|
{ stdenv, fetchurl, getopt, which, pkgconfig, gtk } :
|
|
|
|
|
|
|
|
stdenv.mkDerivation (rec {
|
2012-10-17 20:34:09 +00:00
|
|
|
name = "pqiv-0.12";
|
2008-05-27 15:05:16 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-10-17 20:34:09 +00:00
|
|
|
url = "https://github.com/downloads/phillipberndt/pqiv/${name}.tbz";
|
|
|
|
sha256 = "646c69f2f4e7289913f6b8e8ae984befba9debf0d2b4cc8af9955504a1fccf1e";
|
2008-05-27 15:05:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2010-02-19 09:58:37 +00:00
|
|
|
unpackCmd = ''
|
|
|
|
tar -xf ${src}
|
|
|
|
'';
|
|
|
|
|
2008-05-27 15:05:16 +00:00
|
|
|
meta = {
|
|
|
|
description = "Rewrite of qiv (quick image viewer)";
|
|
|
|
homepage = http://www.pberndt.com/Programme/Linux/pqiv;
|
|
|
|
};
|
|
|
|
})
|