From df553c80eaf10a1b352e440f0bc46495624c527c Mon Sep 17 00:00:00 2001 From: RVG|lory <87276663+LoryPelli@users.noreply.github.com> Date: Sat, 8 Apr 2023 13:12:10 +0200 Subject: [PATCH] Updated to `Nim 1.6.2` --- packages/nim/1.6.2/build.sh | 18 ++++++++++++++++++ packages/nim/1.6.2/compile | 5 +++++ packages/nim/1.6.2/environment | 1 + packages/nim/1.6.2/metadata.json | 5 +++++ packages/nim/1.6.2/run | 4 ++++ packages/nim/1.6.2/test.nim | 1 + 6 files changed, 34 insertions(+) create mode 100644 packages/nim/1.6.2/build.sh create mode 100644 packages/nim/1.6.2/compile create mode 100644 packages/nim/1.6.2/environment create mode 100644 packages/nim/1.6.2/metadata.json create mode 100644 packages/nim/1.6.2/run create mode 100644 packages/nim/1.6.2/test.nim diff --git a/packages/nim/1.6.2/build.sh b/packages/nim/1.6.2/build.sh new file mode 100644 index 0000000..20a9b65 --- /dev/null +++ b/packages/nim/1.6.2/build.sh @@ -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.6.2-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 \ No newline at end of file diff --git a/packages/nim/1.6.2/compile b/packages/nim/1.6.2/compile new file mode 100644 index 0000000..1162cb3 --- /dev/null +++ b/packages/nim/1.6.2/compile @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# Compile nim file(s) +nim --hints:off --out:out --nimcache:./ c "$@" +chmod +x out \ No newline at end of file diff --git a/packages/nim/1.6.2/environment b/packages/nim/1.6.2/environment new file mode 100644 index 0000000..872a1f3 --- /dev/null +++ b/packages/nim/1.6.2/environment @@ -0,0 +1 @@ +export PATH=$PWD/nim/bin:$PATH \ No newline at end of file diff --git a/packages/nim/1.6.2/metadata.json b/packages/nim/1.6.2/metadata.json new file mode 100644 index 0000000..facb421 --- /dev/null +++ b/packages/nim/1.6.2/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "nim", + "version": "1.6.2", + "aliases": [] +} \ No newline at end of file diff --git a/packages/nim/1.6.2/run b/packages/nim/1.6.2/run new file mode 100644 index 0000000..eb7e9c3 --- /dev/null +++ b/packages/nim/1.6.2/run @@ -0,0 +1,4 @@ +#!/bin/bash + +shift # Filename is only used to compile +./out "$@" \ No newline at end of file diff --git a/packages/nim/1.6.2/test.nim b/packages/nim/1.6.2/test.nim new file mode 100644 index 0000000..6c57628 --- /dev/null +++ b/packages/nim/1.6.2/test.nim @@ -0,0 +1 @@ +echo("OK") \ No newline at end of file