diff options
author | zimbatm <zimbatm@zimbatm.com> | 2016-01-09 16:35:27 +0000 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2016-01-11 00:52:24 +0000 |
commit | 93ddfbacd4a25eab23eb5eba073638c6af7657d2 (patch) | |
tree | 7c4a3df35cbb3d250ff6ca7eea055af271571f86 /pkgs/tools/graphics | |
parent | e1873ade382294a4e49acfe68ab811c119f12766 (diff) | |
download | nixlib-93ddfbacd4a25eab23eb5eba073638c6af7657d2.tar nixlib-93ddfbacd4a25eab23eb5eba073638c6af7657d2.tar.gz nixlib-93ddfbacd4a25eab23eb5eba073638c6af7657d2.tar.bz2 nixlib-93ddfbacd4a25eab23eb5eba073638c6af7657d2.tar.lz nixlib-93ddfbacd4a25eab23eb5eba073638c6af7657d2.tar.xz nixlib-93ddfbacd4a25eab23eb5eba073638c6af7657d2.tar.zst nixlib-93ddfbacd4a25eab23eb5eba073638c6af7657d2.zip |
pngcrush: fixes compilation on darwin
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r-- | pkgs/tools/graphics/pngcrush/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/tools/graphics/pngcrush/default.nix b/pkgs/tools/graphics/pngcrush/default.nix index d4383e363491..6a6f3e7b13c6 100644 --- a/pkgs/tools/graphics/pngcrush/default.nix +++ b/pkgs/tools/graphics/pngcrush/default.nix @@ -8,6 +8,8 @@ stdenv.mkDerivation rec { sha256 = "0dlwbqckv90cpvg8qhkl3nk5yb75ddi61vbpmmp9n0j6qq9lp6y4"; }; + makeFlags = [ "CC=cc" "LD=cc" ]; # gcc and/or clang compat + configurePhase = '' sed -i s,/usr,$out, Makefile ''; @@ -18,7 +20,7 @@ stdenv.mkDerivation rec { homepage = http://pmt.sourceforge.net/pngcrush; description = "A PNG optimizer"; license = stdenv.lib.licenses.free; - platforms = with stdenv.lib.platforms; linux; + platforms = with stdenv.lib.platforms; linux ++ darwin; maintainers = with stdenv.lib.maintainers; [ the-kenny ]; }; } |