* added pqiv image viewer

svn path=/nixpkgs/trunk/; revision=11908
This commit is contained in:
Andres Löh 2008-05-27 15:05:16 +00:00
parent e21b6b6ee5
commit 45f5f8a5b3
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,24 @@
{ stdenv, fetchurl, getopt, which, pkgconfig, gtk } :
stdenv.mkDerivation (rec {
name = "pqiv-0.7.1";
src = fetchurl {
url = "http://www.pberndt.com/raw//Programme/Linux/pqiv/_download/pqiv-0.7.1.tbz";
sha256 = "659c5d1d12c080dff5152325a2391e01a2c9a6ea225d1f755a98e8766f318eef";
};
buildInputs = [ getopt which pkgconfig gtk ];
unpackCmd="bzip2 -d < $src | tar xvf - || fail";
preConfigure=''
substituteInPlace configure --replace /bin/bash "$shell"
sed -i -e 's|$(tempfile -s.*)|temp.c|' -e 's|tempfile|mktemp|' configure
'';
meta = {
description = "Rewrite of qiv (quick image viewer)";
homepage = http://www.pberndt.com/Programme/Linux/pqiv;
};
})

View File

@ -5742,6 +5742,11 @@ let pkgs = rec {
inherit fetchurl stdenv ncurses readline;
};
pqiv = import ../applications/graphics/pqiv {
inherit fetchurl stdenv getopt which pkgconfig;
inherit (gtkLibs) gtk;
};
# perhaps there are better apps for this task? It's how I had configured my preivous system.
# And I don't want to rewrite all rules
procmail = import ../applications/misc/procmail {