about summary refs log tree commit diff
path: root/pkgs/tools/graphics/pngcrush
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2011-09-21 07:33:38 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2011-09-21 07:33:38 +0000
commited9d78b75f2c408cb884f0ef8157ed0d4a642414 (patch)
treed45abecdd5670e73c6de3d8230c4b0f6b8bce569 /pkgs/tools/graphics/pngcrush
parent77c5f8754c4f6196df0c81cb57af86d066fc53bd (diff)
downloadnixlib-ed9d78b75f2c408cb884f0ef8157ed0d4a642414.tar
nixlib-ed9d78b75f2c408cb884f0ef8157ed0d4a642414.tar.gz
nixlib-ed9d78b75f2c408cb884f0ef8157ed0d4a642414.tar.bz2
nixlib-ed9d78b75f2c408cb884f0ef8157ed0d4a642414.tar.lz
nixlib-ed9d78b75f2c408cb884f0ef8157ed0d4a642414.tar.xz
nixlib-ed9d78b75f2c408cb884f0ef8157ed0d4a642414.tar.zst
nixlib-ed9d78b75f2c408cb884f0ef8157ed0d4a642414.zip
Adding pngcrush
svn path=/nixpkgs/trunk/; revision=29411
Diffstat (limited to 'pkgs/tools/graphics/pngcrush')
-rw-r--r--pkgs/tools/graphics/pngcrush/default.nix23
1 files changed, 23 insertions, 0 deletions
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;
+  };
+}