diff options
author | Claudio Bley <claudio.bley@gmail.com> | 2023-11-21 09:21:03 +0100 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2023-11-21 18:19:27 +0100 |
commit | 2af613b58c9401fd7b4d270a46f22a755990fd43 (patch) | |
tree | f70665ef9e7fea84969742564c07fb597964f719 /pkgs/development/compilers | |
parent | 0c086da2bb82029fd00e80bdc117a37a804fd7ff (diff) | |
download | nixlib-2af613b58c9401fd7b4d270a46f22a755990fd43.tar nixlib-2af613b58c9401fd7b4d270a46f22a755990fd43.tar.gz nixlib-2af613b58c9401fd7b4d270a46f22a755990fd43.tar.bz2 nixlib-2af613b58c9401fd7b4d270a46f22a755990fd43.tar.lz nixlib-2af613b58c9401fd7b4d270a46f22a755990fd43.tar.xz nixlib-2af613b58c9401fd7b4d270a46f22a755990fd43.tar.zst nixlib-2af613b58c9401fd7b4d270a46f22a755990fd43.zip |
haskell.compiler.ghc*: set abs paths for cctools bintools w/ hadrian
Fixes #267250. Co-authored-by: sternenseemann <sternenseemann@systemli.org>
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r-- | pkgs/development/compilers/ghc/common-hadrian.nix | 8 |
1 files changed, 8 insertions, 0 deletions
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[@]}" ''; |