GHCJS packages: avoid inode explosion
As noted in #25595, a change introduced in 4b77d425aa597 causes an explosion of inodes due to the constructions of many, many `ghcEnv` symlink forests. This commit undoes that change. To discuss reworking the support for GHCJS plugins, please see: #26192 Fixes #25595
This commit is contained in:
parent
60ba38fd8a
commit
132b503aac
@ -197,13 +197,11 @@ stdenv.mkDerivation ({
|
|||||||
${jailbreak-cabal}/bin/jailbreak-cabal ${pname}.cabal
|
${jailbreak-cabal}/bin/jailbreak-cabal ${pname}.cabal
|
||||||
'' + postPatch;
|
'' + postPatch;
|
||||||
|
|
||||||
# for ghcjs, we want to put ghcEnv on PATH so compiler plugins will be available.
|
|
||||||
# TODO(cstrahan): would the same be of benefit to native ghc?
|
|
||||||
setupCompilerEnvironmentPhase = ''
|
setupCompilerEnvironmentPhase = ''
|
||||||
runHook preSetupCompilerEnvironment
|
runHook preSetupCompilerEnvironment
|
||||||
|
|
||||||
echo "Build with ${ghc}."
|
echo "Build with ${ghc}."
|
||||||
export PATH="${if ghc.isGhcjs or false then ghcEnv else ghc}/bin:$PATH"
|
export PATH="${ghc}/bin:$PATH"
|
||||||
${optionalString (hasActiveLibrary && hyperlinkSource) "export PATH=${hscolour}/bin:$PATH"}
|
${optionalString (hasActiveLibrary && hyperlinkSource) "export PATH=${hscolour}/bin:$PATH"}
|
||||||
|
|
||||||
packageConfDir="$TMPDIR/package.conf.d"
|
packageConfDir="$TMPDIR/package.conf.d"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user