From 7199dd266e1d89b1cc440e748a1c9170ac3469d4 Mon Sep 17 00:00:00 2001 From: Hydrazer Date: Fri, 23 Dec 2022 19:28:44 -0700 Subject: [PATCH] pkg(k-1.0.0): Added k 1.0.0 --- packages/ngnk/1.0.0/build.sh | 9 +++++++++ packages/ngnk/1.0.0/environment | 4 ++++ packages/ngnk/1.0.0/metadata.json | 5 +++++ packages/ngnk/1.0.0/run | 3 +++ packages/ngnk/1.0.0/test.k | 1 + readme.md | 1 + 6 files changed, 23 insertions(+) create mode 100755 packages/ngnk/1.0.0/build.sh create mode 100644 packages/ngnk/1.0.0/environment create mode 100644 packages/ngnk/1.0.0/metadata.json create mode 100644 packages/ngnk/1.0.0/run create mode 100644 packages/ngnk/1.0.0/test.k diff --git a/packages/ngnk/1.0.0/build.sh b/packages/ngnk/1.0.0/build.sh new file mode 100755 index 0000000..b437840 --- /dev/null +++ b/packages/ngnk/1.0.0/build.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -e + +git clone "https://codeberg.org/ngn/k" k +cd k + +git checkout 040f73b56f379a8298cb1747075c9e947dfe0e42 +make CC=gcc \ No newline at end of file diff --git a/packages/ngnk/1.0.0/environment b/packages/ngnk/1.0.0/environment new file mode 100644 index 0000000..2ad3aad --- /dev/null +++ b/packages/ngnk/1.0.0/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export PATH=$PWD/bin:$PATH +export K_PATH=$PWD/k \ No newline at end of file diff --git a/packages/ngnk/1.0.0/metadata.json b/packages/ngnk/1.0.0/metadata.json new file mode 100644 index 0000000..9b467f1 --- /dev/null +++ b/packages/ngnk/1.0.0/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "ngnk", + "version": "1.0.0", + "aliases": ["k"] +} \ No newline at end of file diff --git a/packages/ngnk/1.0.0/run b/packages/ngnk/1.0.0/run new file mode 100644 index 0000000..5309fc9 --- /dev/null +++ b/packages/ngnk/1.0.0/run @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +$K_PATH/k "$@" \ No newline at end of file diff --git a/packages/ngnk/1.0.0/test.k b/packages/ngnk/1.0.0/test.k new file mode 100644 index 0000000..18627b8 --- /dev/null +++ b/packages/ngnk/1.0.0/test.k @@ -0,0 +1 @@ +`0:"OK" diff --git a/readme.md b/readme.md index 1135e90..ce7db6e 100644 --- a/readme.md +++ b/readme.md @@ -350,6 +350,7 @@ Content-Type: application/json `javascript`, `jelly`, `julia`, +`k`, `kotlin`, `lisp`, `llvm_ir`,