Skip to content

Instantly share code, notes, and snippets.

@tolysz
Created October 7, 2020 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tolysz/cad483acfe90e4b8d2500f54450c4833 to your computer and use it in GitHub Desktop.
Save tolysz/cad483acfe90e4b8d2500f54450c4833 to your computer and use it in GitHub Desktop.
build-ghc.sh
#export TEMP=/extra/devel/ghc/tmp
#export TMP=/extra/devel/ghc/tmp
export GHC_VERSION=8.6.5
git config --global url."git://github.com/ghc/packages-".insteadOf git://github.com/ghc/packages/ && \
git clone -b ghc-${GHC_VERSION}-release --recursive git://github.com/ghc/ghc ghc-${GHC_VERSION} && \
cd ghc-${GHC_VERSION}/ && \
cp mk/build.mk.sample mk/build.mk && \
sed -i 's/^#BuildFlavour *= *perf$/BuildFlavour = perf/' mk/build.mk && \
./boot && \
./configure --enable-tarballs-autodownload && \
sed -i 's/^TAR_COMP *= *bzip2$/TAR_COMP = xz/' mk/config.mk && \
make -j$(cat /proc/cpuinfo|grep processor|wc -l) && \
make binary-dist
@tolysz
Copy link
Author

tolysz commented Oct 7, 2020

resolver: lts-14.27
setup-info:
   ghc:
      linux-aarch64:
            8.2.2:
              url: "http://ghcjs.tolysz.org/ghc-8.2.2-aarch64-unknown-linux.tar.xz"
              content-length: 152979556
              sha1: 93320f0e2987c03e395369f2d6f54276c08e8e86
            8.6.3:
              url: "http://ghcjs.tolysz.org/ghc-8.6.3-aarch64-unknown-linux.tar.xz"
              content-length: 191169108
              sha1: aca53485908607126a35fdf9a513fe2f5554b6cd
            8.6.5:
              url: "http://ghcjs.tolysz.org/ghc-8.6.5-aarch64-unknown-linux.tar.xz"
              content-length: 190345900
              sha1: 5a4473e11b4ebc15f9c2a5d0b131d04b8301a5ab
            8.8.4:
              url: "http://ghcjs.tolysz.org/ghc-8.8.4-aarch64-unknown-linux.tar.xz"
              content-length: 230657844
              sha1: 3f1482f78e5b22b5b3c52dbb3b4af9e2dc977760
            8.10.2:
              url: "http://ghcjs.tolysz.org/ghc-8.10.2-aarch64-unknown-linux.tar.xz"
              content-length: 235350380
              sha1: 283f7cbc2d8b5adcfd66c8fbc288c7fc5299a382

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment