Skip to content

Commit 51737c7

Browse files
committed
Fix name clash
1 parent 12ecc24 commit 51737c7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

builder/make-config-files.nix

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ let
7070
(map (p: "${p}/Library/Frameworks") component.frameworks);
7171
})}
7272
73-
ghc=${ghc}
73+
unwrappedGhc=${ghc}
7474
${ # Copy over the nonReinstallablePkgs from the global package db.
7575
''
7676
for p in ${lib.concatStringsSep " " nonReinstallablePkgs'}; do
77-
find $ghc/lib/${ghc.name}/package.conf.d -name $p'*.conf' -exec cp -f {} $configFiles/${packageCfgDir} \;
77+
find $unwrappedGhc/lib/${ghc.name}/package.conf.d -name $p'*.conf' -exec cp -f {} $configFiles/${packageCfgDir} \;
7878
done
7979
''}
8080
@@ -140,15 +140,15 @@ let
140140
''}
141141
done
142142
for p in ${lib.concatStringsSep " " (lib.remove "ghc" nonReinstallablePkgs')}; do
143-
if [ -e $ghc/envDeps/$p ]; then
144-
cat $ghc/envDeps/$p >> $configFiles/ghc-environment
143+
if [ -e $unwrappedGhc/envDeps/$p ]; then
144+
cat $unwrappedGhc/envDeps/$p >> $configFiles/ghc-environment
145145
fi
146146
done
147147
'' + lib.optionalString component.doExactConfig ''
148148
for p in ${lib.concatStringsSep " " nonReinstallablePkgs'}; do
149-
if [ -e $ghc/exactDeps/$p ]; then
150-
cat $ghc/exactDeps/$p/configure-flags >> $configFiles/configure-flags
151-
cat $ghc/exactDeps/$p/cabal.config >> $configFiles/cabal.config
149+
if [ -e $unwrappedGhc/exactDeps/$p ]; then
150+
cat $unwrappedGhc/exactDeps/$p/configure-flags >> $configFiles/configure-flags
151+
cat $unwrappedGhc/exactDeps/$p/cabal.config >> $configFiles/cabal.config
152152
fi
153153
done
154154
''

0 commit comments

Comments
 (0)