summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorSamuel Dionne-Riel <samuel@dionne-riel.com>2018-09-11 09:55:27 -0400
committerGitHub <noreply@github.com>2018-09-11 09:55:27 -0400
commit288f9c648f2e145f6af913b88eba0696aa288df7 (patch)
tree1853fa6dd70191be99411a14cdcd44fc71cff572 /pkgs
parent28ef51244acf83e86e8f46b9b325138ff4d2b784 (diff)
parent5e8fd8792b043c437c07e353f20a6ccb09f8283d (diff)
downloadnixlib-288f9c648f2e145f6af913b88eba0696aa288df7.tar
nixlib-288f9c648f2e145f6af913b88eba0696aa288df7.tar.gz
nixlib-288f9c648f2e145f6af913b88eba0696aa288df7.tar.bz2
nixlib-288f9c648f2e145f6af913b88eba0696aa288df7.tar.lz
nixlib-288f9c648f2e145f6af913b88eba0696aa288df7.tar.xz
nixlib-288f9c648f2e145f6af913b88eba0696aa288df7.tar.zst
nixlib-288f9c648f2e145f6af913b88eba0696aa288df7.zip
Merge pull request #46501 from LnL7/darwin-perl-Module-Build-XSUtil
perl-Module-Build-XSUtil: fix darwin build
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/top-level/perl-packages.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix
index 6bf58f5db28d..2ec4efed8863 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 {
@@ -10883,6 +10884,7 @@ let
       sha256 = "1j3048ip691j91rdig6wrlg6i4jdzhszxmz5pi2g7n355rl2w00l";
     };
     buildInputs = [ DevelPPPort ModuleBuildXSUtil TestException TestFatal TestLeakTrace TestOutput TestRequires TryTiny self.version ];
+    perlPreHook = "export LD=$CC";
     NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isi686 "-fno-stack-protector";
     hardeningDisable = stdenv.lib.optional stdenv.isi686 "stackprotector";
   };