Skip to content

Commit

Permalink
haskell.compiler.ghc*: set abs paths for cctools bintools w/ hadrian
Browse files Browse the repository at this point in the history
Fixes #267250.

Co-authored-by: sternenseemann <sternenseemann@systemli.org>
  • Loading branch information
avdv and sternenseemann committed Nov 21, 2023
1 parent 0c086da commit 2af613b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkgs/development/compilers/ghc/common-hadrian.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}"
'';

Expand Down

0 comments on commit 2af613b

Please sign in to comment.