pkg(k-1.0.0): Added k 1.0.0

This commit is contained in:
scpchicken 2025-02-08 20:42:07 -07:00
parent 1d55a41a2d
commit c54bd64372
6 changed files with 24 additions and 0 deletions

9
packages/k/1.0.0/build.sh vendored Normal file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -e
git clone "https://codeberg.org/ngn/k" k
cd k
git checkout 544d014afd8dd84b18c2011cabd3aa3d76571ca3
make CC=gcc

5
packages/k/1.0.0/environment vendored Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
# k path
export PATH=$PWD/bin:$PATH
export K_PATH=$PWD/k

5
packages/k/1.0.0/metadata.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"language": "k",
"version": "1.0.0",
"aliases": ["ngnk"]
}

3
packages/k/1.0.0/run vendored Normal file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
$K_PATH/k "$@"

1
packages/k/1.0.0/test.k vendored Normal file
View File

@ -0,0 +1 @@
`0:`c$2/'((1 0 0 1 1 1 1);(1 0 0 1 0 1 1))

View File

@ -404,6 +404,7 @@ Errors may return status codes as follows:
`javascript`, `javascript`,
`jelly`, `jelly`,
`julia`, `julia`,
`k`,
`kotlin`, `kotlin`,
`lisp`, `lisp`,
`llvm_ir`, `llvm_ir`,