From 2af613b58c9401fd7b4d270a46f22a755990fd43 Mon Sep 17 00:00:00 2001 From: Claudio Bley Date: Tue, 21 Nov 2023 09:21:03 +0100 Subject: haskell.compiler.ghc*: set abs paths for cctools bintools w/ hadrian Fixes #267250. Co-authored-by: sternenseemann --- pkgs/development/compilers/ghc/common-hadrian.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pkgs/development/compilers') diff --git a/pkgs/development/compilers/ghc/common-hadrian.nix b/pkgs/development/compilers/ghc/common-hadrian.nix index 83b986be2b32..8bc9a5835177 100644 --- a/pkgs/development/compilers/ghc/common-hadrian.nix +++ b/pkgs/development/compilers/ghc/common-hadrian.nix @@ -477,6 +477,14 @@ stdenv.mkDerivation ({ preInstall = '' pushd _build/bindist/* + '' + # the bindist configure script uses different env variables than the GHC configure script + # see https://github.com/NixOS/nixpkgs/issues/267250 and https://gitlab.haskell.org/ghc/ghc/-/issues/24211 + + lib.optionalString (stdenv.targetPlatform.linker == "cctools") '' + export InstallNameToolCmd=$INSTALL_NAME_TOOL + export OtoolCmd=$OTOOL + '' + + '' $configureScript $configureFlags "''${configureFlagsArray[@]}" ''; -- cgit 1.4.1