mirror of
https://github.com/engineer-man/piston.git
synced 2025-05-16 08:36:26 +02:00
pkg(nim-1.4.4): Add nim 1.4.4
This commit is contained in:
parent
bcbdda6f66
commit
599b1f793d
6 changed files with 35 additions and 0 deletions
18
packages/nim/1.4.4/build.sh
vendored
Executable file
18
packages/nim/1.4.4/build.sh
vendored
Executable file
|
@ -0,0 +1,18 @@
|
||||||
|
#!/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
|
5
packages/nim/1.4.4/compile
vendored
Normal file
5
packages/nim/1.4.4/compile
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Compile nim file(s)
|
||||||
|
nim --hints:off --out:out --nimcache:./ c "$@"
|
||||||
|
chmod +x out
|
1
packages/nim/1.4.4/environment
vendored
Normal file
1
packages/nim/1.4.4/environment
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export PATH=$PWD/nim/bin:$PATH
|
6
packages/nim/1.4.4/metadata.json
vendored
Normal file
6
packages/nim/1.4.4/metadata.json
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"language": "nim",
|
||||||
|
"version": "1.4.4",
|
||||||
|
"author": "Dan Vargas <danvargas46@gmail.com>",
|
||||||
|
"aliases": ["nim"]
|
||||||
|
}
|
4
packages/nim/1.4.4/run
vendored
Normal file
4
packages/nim/1.4.4/run
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
shift # Filename is only used to compile
|
||||||
|
./out "$@"
|
1
packages/nim/1.4.4/test.nim
vendored
Normal file
1
packages/nim/1.4.4/test.nim
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
echo("OK")
|
Loading…
Add table
Add a link
Reference in a new issue