Commit eda04d71 authored by Claudio Bley's avatar Claudio Bley Committed by sternenseemann
Browse files

haskell.compiler.ghc*: set abs paths for cctools bintools w/ hadrian



Fixes #267250.

Co-authored-by: default avatarsternenseemann <sternenseemann@systemli.org>
parent add8bb5e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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[@]}"
  '';