Skip to content

Instantly share code, notes, and snippets.

@TerrorJack
Created November 18, 2024 22:32
Show Gist options
  • Save TerrorJack/8f95dba6cc1c6171d7578a9504dbf243 to your computer and use it in GitHub Desktop.
Save TerrorJack/8f95dba6cc1c6171d7578a9504dbf243 to your computer and use it in GitHub Desktop.
crime.sh
cd "$(mktemp -d)"
curl -f -L --retry 5 https://downloads.haskell.org/ghc/9.10.1/ghc-9.10.1-aarch64-alpine3_18-linux.tar.xz | tar xJ --strip-components=1
perl -pi -e 'BEGIN { binmode(STDIN); binmode(STDOUT); } s/aarch64-alpine-linux\0/aarch64-unknown-linux/' lib/aarch64-linux-ghc-9.*/libHSghc-9.*.so
sed -i -e 's/alpine/unknown/' mk/project.mk
sed -i -e 's/alpine/unknown/' configure
sed -i -e 's/alpine/unknown/' lib/settings
./configure --prefix=$HOME/.local
make install -j16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment