Skip to content

Commit

Permalink
Create wrapper for GHC
Browse files Browse the repository at this point in the history
  • Loading branch information
Menci committed Aug 24, 2022
1 parent 3a8b6fd commit 12b12f9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ ln -s /sandbox/.sdkman/candidates/kotlin/current/bin/kotlinc /usr/local/bin/kotl
ln -s /sandbox/.cargo/bin/rustc /usr/local/bin/rustc
ln -s /opt/swift/usr/bin/swiftc /usr/local/bin/swiftc

# Create wrapper for GHC
cat > /usr/local/bin/ghc <<EOF
#!/bin/bash
for DIR in /opt/ghc/*/lib/ghc-*/*; do
export LD_LIBRARY_PATH="\$LD_LIBRARY_PATH:\$DIR"
done
/opt/ghc/bin/ghc "\$@"
EOF
chmod +x /usr/local/bin/ghc

# Clean the APT cache
apt-get clean

Expand Down

0 comments on commit 12b12f9

Please sign in to comment.