We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb3490e commit 120baa6Copy full SHA for 120baa6
builder/ghc-for-component-wrapper.nix
@@ -37,11 +37,11 @@ let
37
${lndir}/bin/lndir -silent $unwrappedGhc $wrappedGhc
38
rm -rf ${libDir}/*/
39
''
40
- # ... but retain the lib/ghc/bin directory. This contains `unlit' and friends.
+ # ... but retain the lib/ghc/bin directory. This may contain `unlit' and friends.
41
+ ''
42
if [ -d $unwrappedGhc/lib/${ghcCommand}-${ghc.version}/bin ]; then
43
ln -s $unwrappedGhc/lib/${ghcCommand}-${ghc.version}/bin ${libDir}
44
- else
+ elif [ -d $unwrappedGhc/lib/bin ]; then
45
ln -s $unwrappedGhc/lib/bin ${libDir}
46
fi
47
0 commit comments