pngcrush: fixes compilation on darwin

+3 -1
+3 -1
pkgs/tools/graphics/pngcrush/default.nix
··· 8 sha256 = "0dlwbqckv90cpvg8qhkl3nk5yb75ddi61vbpmmp9n0j6qq9lp6y4"; 9 }; 10 11 configurePhase = '' 12 sed -i s,/usr,$out, Makefile 13 ''; ··· 18 homepage = http://pmt.sourceforge.net/pngcrush; 19 description = "A PNG optimizer"; 20 license = stdenv.lib.licenses.free; 21 - platforms = with stdenv.lib.platforms; linux; 22 maintainers = with stdenv.lib.maintainers; [ the-kenny ]; 23 }; 24 }
··· 8 sha256 = "0dlwbqckv90cpvg8qhkl3nk5yb75ddi61vbpmmp9n0j6qq9lp6y4"; 9 }; 10 11 + makeFlags = [ "CC=cc" "LD=cc" ]; # gcc and/or clang compat 12 + 13 configurePhase = '' 14 sed -i s,/usr,$out, Makefile 15 ''; ··· 20 homepage = http://pmt.sourceforge.net/pngcrush; 21 description = "A PNG optimizer"; 22 license = stdenv.lib.licenses.free; 23 + platforms = with stdenv.lib.platforms; linux ++ darwin; 24 maintainers = with stdenv.lib.maintainers; [ the-kenny ]; 25 }; 26 }