mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 12:36:28 +02:00
migrate nim pkg to nix
This commit is contained in:
parent
f94ba284df
commit
ab536f35ff
8 changed files with 33 additions and 34 deletions
18
packages/nim/1.4.4/build.sh
vendored
18
packages/nim/1.4.4/build.sh
vendored
|
@ -1,18 +0,0 @@
|
|||
#!/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
5
packages/nim/1.4.4/compile
vendored
|
@ -1,5 +0,0 @@
|
|||
#!/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
1
packages/nim/1.4.4/environment
vendored
|
@ -1 +0,0 @@
|
|||
export PATH=$PWD/nim/bin:$PATH
|
5
packages/nim/1.4.4/metadata.json
vendored
5
packages/nim/1.4.4/metadata.json
vendored
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"language": "nim",
|
||||
"version": "1.4.4",
|
||||
"aliases": ["nim"]
|
||||
}
|
4
packages/nim/1.4.4/run
vendored
4
packages/nim/1.4.4/run
vendored
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
shift # Filename is only used to compile
|
||||
./out "$@"
|
1
packages/nim/1.4.4/test.nim
vendored
1
packages/nim/1.4.4/test.nim
vendored
|
@ -1 +0,0 @@
|
|||
echo("OK")
|
Loading…
Add table
Add a link
Reference in a new issue