From ed9d78b75f2c408cb884f0ef8157ed0d4a642414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 21 Sep 2011 07:33:38 +0000 Subject: [PATCH] Adding pngcrush svn path=/nixpkgs/trunk/; revision=29411 --- pkgs/tools/graphics/pngcrush/default.nix | 23 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/tools/graphics/pngcrush/default.nix diff --git a/pkgs/tools/graphics/pngcrush/default.nix b/pkgs/tools/graphics/pngcrush/default.nix new file mode 100644 index 000000000000..caa99d2c4e2a --- /dev/null +++ b/pkgs/tools/graphics/pngcrush/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1074e52ac86f..c38c117e9d0e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1165,6 +1165,8 @@ let plotutils = callPackage ../tools/graphics/plotutils { }; + pngcrush = callPackage ../tools/graphics/pngcrush { }; + pngnq = callPackage ../tools/graphics/pngnq { }; polipo = callPackage ../servers/polipo { };