perlPackages.JavaScriptMinifierXS: fix darwin build

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

View File

@ -9839,7 +9839,7 @@ let
url = "mirror://cpan/authors/id/G/GT/GTERMARS/JavaScript-Minifier-XS-0.11.tar.gz";
sha256 = "1vlyhckpjbrg2v4dy9szsxxl0q44n0y1xl763mg2y2ym9g5144hm";
};
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 JavaScript minifier";
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];