haskell-generic-builder: pass "--with-gcc=$CC" on Darwin to help Cabal find Clang
Suggested in https://github.com/NixOS/nixpkgs/pull/5746.
This commit is contained in:
parent
07966befee
commit
67312f83ad
@ -117,6 +117,8 @@ stdenv.mkDerivation ({
|
|||||||
${optionalString (versionOlder "7.8" ghc.version && !isLibrary) ''
|
${optionalString (versionOlder "7.8" ghc.version && !isLibrary) ''
|
||||||
configureFlags+=" --ghc-option=-j$NIX_BUILD_CORES"
|
configureFlags+=" --ghc-option=-j$NIX_BUILD_CORES"
|
||||||
setupCompileFlags="-j$NIX_BUILD_CORES"
|
setupCompileFlags="-j$NIX_BUILD_CORES"
|
||||||
|
''}${optionalString stdenv.isDarwin ''
|
||||||
|
configureFlags+=" --with-gcc=$CC" # Cabal won't find clang without help.
|
||||||
''}
|
''}
|
||||||
|
|
||||||
packageConfDir="$TMP/package.conf.d"
|
packageConfDir="$TMP/package.conf.d"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user