2008-05-27 15:05:16 +00:00
|
|
|
{ stdenv, fetchurl, getopt, which, pkgconfig, gtk } :
|
|
|
|
|
|
|
|
stdenv.mkDerivation (rec {
|
2009-01-04 17:30:03 +00:00
|
|
|
name = "pqiv-0.8";
|
2008-05-27 15:05:16 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-11-26 15:50:26 +00:00
|
|
|
url = "http://www.pberndt.com/raw/Programme/Linux/pqiv/_download/${name}.tbz";
|
2009-01-04 17:30:03 +00:00
|
|
|
sha256 = "365332bab4b13ca56da6935e7155af20658e67d323808942dce23e880466f66d";
|
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;
|
|
|
|
};
|
|
|
|
})
|