Adding pngcrush

svn path=/nixpkgs/trunk/; revision=29411
This commit is contained in:
Lluís Batlle i Rossell 2011-09-21 07:33:38 +00:00
parent 77c5f8754c
commit ed9d78b75f
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,23 @@
{ stdenv, fetchurl, libpng, xz }:
stdenv.mkDerivation rec {
name = "pngcrush-1.7.17";
src = fetchurl {
url = "mirror://sourceforge/pmt/${name}-nolib.tar.xz";
sha256 = "0lh6wl0ci2y9b690n2zggc1mk21xj6iv378gvxk6gksgjkdw2rj2";
};
configurePhase = ''
sed -i s,/usr,$out, Makefile
'';
buildInputs = [ xz libpng ];
meta = {
homepage = http://pmt.sourceforge.net/pngcrush;
description = "A PNG optimizer";
license = "free";
platforms = with stdenv.lib.platforms; linux;
};
}

View File

@ -1165,6 +1165,8 @@ let
plotutils = callPackage ../tools/graphics/plotutils { };
pngcrush = callPackage ../tools/graphics/pngcrush { };
pngnq = callPackage ../tools/graphics/pngnq { };
polipo = callPackage ../servers/polipo { };