perl-Module-Build-XSUtil: fix darwin build
While building the tests LD gets called with -mmacosx-version-min=10.10
which is a CC flag, causing the build to fail with LD=ld. This is
pretty common with perl packages.
/cc ZHF #45961
commitdc6b36b994c05debb881c049fadaae353507e0b7
authorDaiderd Jordan <daiderd@gmail.com>
dateTue 11 Sep 2018, 00:25 (8 years ago)
parent107448f
pkgs/top-level/perl-packages.nix+2−1
@@ -9650,11 +9650,12 @@ let
96509650 sha256 = "004ly9xxjlsbrr2vhxsa1n84z3034gxrzr7z0wl45szd8v1v6qwh";
96519651 };
96529652 buildInputs = [ CaptureTiny CwdGuard FileCopyRecursiveReduced ];
9653+ propagatedBuildInputs = [ DevelCheckCompiler ];
9654+ perlPreHook = "export LD=$CC";
96539655 meta = {
96549656 description = "A Module::Build class for building XS modules";
96559657 license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
96569658 };
9657− propagatedBuildInputs = [ DevelCheckCompiler ];
96589659 };
96599660
96609661 ModuleCPANTSAnalyse = buildPerlPackage rec {