mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
19 lines
411 B
Bash
Executable file
19 lines
411 B
Bash
Executable file
#!/bin/bash
|
|
|
|
PREFIX=$(realpath $(dirname $0))
|
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
# Platform specific because a true source compile would require GHC to be installed already on the latest
|
|
curl -L "https://downloads.haskell.org/~ghc/9.0.1/ghc-9.0.1-x86_64-deb10-linux.tar.xz" -o ghc.tar.xz
|
|
tar xf ghc.tar.xz --strip-components=1
|
|
rm ghc.tar.xz
|
|
|
|
./configure --prefix="$PREFIX"
|
|
make install -j$(nproc)
|
|
|
|
cd ../
|
|
|
|
rm -rf build
|