Skip to content

Commit 120baa6

Browse files
committed
Fix broken symlink issue
1 parent cb3490e commit 120baa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builder/ghc-for-component-wrapper.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ let
3737
${lndir}/bin/lndir -silent $unwrappedGhc $wrappedGhc
3838
rm -rf ${libDir}/*/
3939
''
40-
# ... but retain the lib/ghc/bin directory. This contains `unlit' and friends.
40+
# ... but retain the lib/ghc/bin directory. This may contain `unlit' and friends.
4141
+ ''
4242
if [ -d $unwrappedGhc/lib/${ghcCommand}-${ghc.version}/bin ]; then
4343
ln -s $unwrappedGhc/lib/${ghcCommand}-${ghc.version}/bin ${libDir}
44-
else
44+
elif [ -d $unwrappedGhc/lib/bin ]; then
4545
ln -s $unwrappedGhc/lib/bin ${libDir}
4646
fi
4747
''

0 commit comments

Comments
 (0)