mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 18:42:15 +00:00
d4d7931a62
svn path=/nixpkgs/branches/stdenv-updates/; revision=31678
24 lines
509 B
Nix
24 lines
509 B
Nix
{ stdenv, fetchurl, libpng }:
|
|
|
|
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 = [ libpng ];
|
|
|
|
meta = {
|
|
homepage = http://pmt.sourceforge.net/pngcrush;
|
|
description = "A PNG optimizer";
|
|
license = "free";
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
};
|
|
}
|