mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
24 lines
509 B
Nix
24 lines
509 B
Nix
{ stdenv, fetchurl, libpng }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pngcrush-1.7.50";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/pmt/${name}-nolib.tar.xz";
|
|
sha256 = "1xabqjgvwsyazs0hw7bzzm256zbd7v33alwzp0lbawm521m3m651";
|
|
};
|
|
|
|
configurePhase = ''
|
|
sed -i s,/usr,$out, Makefile
|
|
'';
|
|
|
|
buildInputs = [ libpng ];
|
|
|
|
meta = {
|
|
homepage = http://pmt.sourceforge.net/pngcrush;
|
|
description = "A PNG optimizer";
|
|
license = "free";
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
};
|
|
}
|