1
0
Fork 0
mirror of https://github.com/engineer-man/piston.git synced 2025-05-05 11:26:27 +02:00
piston/packages/nim/1.4.4/build.sh
2021-03-17 20:49:21 -05:00

18 lines
316 B
Bash
Executable file

#!/bin/bash
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
# Prebuilt binary - source *can* be built, but it requires gcc
curl -L "https://nim-lang.org/download/nim-1.4.4-linux_x64.tar.xz" -o nim.tar.xz
tar xf nim.tar.xz --strip-components=1
rm nim.tar.xz
./install.sh "$PREFIX"
cd ../
rm -rf build