nixpkgs/pkgs/tools/graphics/pngcrush/default.nix
zimbatm e1873ade38 pngcrush: 1.7.85 -> 1.7.92
also fixes a compilation issue on OSX
2016-01-09 16:38:06 +00:00

25 lines
589 B
Nix

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