diff options
Diffstat (limited to 'pkgs/tools/graphics/pngcrush')
-rw-r--r-- | pkgs/tools/graphics/pngcrush/default.nix | 23 |
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; + }; +} |