perlPackages.CSSMinifierXS: fix darwin build

This commit is contained in:
Stig Palmquist 2020-07-06 17:54:37 +02:00
parent cd6810e469
commit eb3d8815ec
No known key found for this signature in database
GPG Key ID: DA4C335C11D70DA7

View File

@ -3942,7 +3942,7 @@ let
url = "mirror://cpan/authors/id/G/GT/GTERMARS/CSS-Minifier-XS-0.09.tar.gz";
sha256 = "1myswrmh0sqp5xjpp03x45z8arfmgkjx0srl3r6kjsyzl1zrk9l8";
};
perlPreHook = stdenv.lib.optionalString stdenv.isi686 "export LD=$CC"; # fix undefined reference to `__stack_chk_fail_local'
perlPreHook = stdenv.lib.optionalString (stdenv.isi686 || stdenv.isDarwin) "export LD=$CC";
meta = {
description = "XS based CSS minifier";
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];