summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2018-09-11 00:25:49 +0200
committerDaiderd Jordan <daiderd@gmail.com>2018-09-11 00:28:05 +0200
commitdc6b36b994c05debb881c049fadaae353507e0b7 (patch)
treea26e118a3d6441a034babaa92a81f6c0882a5f8f
parent107448f19ce5de98d2fc627f6533a6a60845a5d3 (diff)
downloadnixlib-dc6b36b994c05debb881c049fadaae353507e0b7.tar
nixlib-dc6b36b994c05debb881c049fadaae353507e0b7.tar.gz
nixlib-dc6b36b994c05debb881c049fadaae353507e0b7.tar.bz2
nixlib-dc6b36b994c05debb881c049fadaae353507e0b7.tar.lz
nixlib-dc6b36b994c05debb881c049fadaae353507e0b7.tar.xz
nixlib-dc6b36b994c05debb881c049fadaae353507e0b7.tar.zst
nixlib-dc6b36b994c05debb881c049fadaae353507e0b7.zip
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
-rw-r--r--pkgs/top-level/perl-packages.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix
index 6bf58f5db28d..14ac1ca2e2c6 100644
--- a/pkgs/top-level/perl-packages.nix
+++ b/pkgs/top-level/perl-packages.nix
@@ -9650,11 +9650,12 @@ let
       sha256 = "004ly9xxjlsbrr2vhxsa1n84z3034gxrzr7z0wl45szd8v1v6qwh";
     };
     buildInputs = [ CaptureTiny CwdGuard FileCopyRecursiveReduced ];
+    propagatedBuildInputs = [ DevelCheckCompiler ];
+    perlPreHook = "export LD=$CC";
     meta = {
       description = "A Module::Build class for building XS modules";
       license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
     };
-    propagatedBuildInputs = [ DevelCheckCompiler ];
   };
 
   ModuleCPANTSAnalyse = buildPerlPackage rec {