diff --git a/packages/bqn/1.0.0/build.sh b/packages/bqn/1.0.0/build.sh new file mode 100644 index 0000000..3ffe3e6 --- /dev/null +++ b/packages/bqn/1.0.0/build.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -e + +git clone "https://github.com/dzaima/CBQN" bqn +cd bqn + +git checkout 88f65850fa6ac28bc50886c5942652f21d5be924 +make CC=gcc diff --git a/packages/bqn/1.0.0/environment b/packages/bqn/1.0.0/environment new file mode 100644 index 0000000..4844e9a --- /dev/null +++ b/packages/bqn/1.0.0/environment @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# Python and Vyxal path +export PATH=$PWD/bin:$PATH +export BQN_PATH=$PWD/bqn diff --git a/packages/bqn/1.0.0/metadata.json b/packages/bqn/1.0.0/metadata.json new file mode 100644 index 0000000..58623c7 --- /dev/null +++ b/packages/bqn/1.0.0/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "bqn", + "version": "1.0.0", + "aliases": [] +} diff --git a/packages/bqn/1.0.0/run b/packages/bqn/1.0.0/run new file mode 100644 index 0000000..558f00a --- /dev/null +++ b/packages/bqn/1.0.0/run @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +$BQN_PATH/BQN "$@" diff --git a/packages/bqn/1.0.0/test.bqn b/packages/bqn/1.0.0/test.bqn new file mode 100644 index 0000000..ad90468 --- /dev/null +++ b/packages/bqn/1.0.0/test.bqn @@ -0,0 +1 @@ +•Out @⊸+∘(+⟜(2⊸×)´∘⌽¨)∘(-⟜'0') "01001111"‿"01001011" diff --git a/packages/rust/1.62.0/build.sh b/packages/rust/1.62.0/build.sh new file mode 100755 index 0000000..d46fee0 --- /dev/null +++ b/packages/rust/1.62.0/build.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +curl -OL "https://static.rust-lang.org/dist/rust-1.62.0-x86_64-unknown-linux-gnu.tar.gz" +tar xzvf rust-1.62.0-x86_64-unknown-linux-gnu.tar.gz +rm rust-1.62.0-x86_64-unknown-linux-gnu.tar.gz diff --git a/packages/rust/1.62.0/compile b/packages/rust/1.62.0/compile new file mode 100755 index 0000000..201318a --- /dev/null +++ b/packages/rust/1.62.0/compile @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +# https://stackoverflow.com/questions/38041331/rust-compiler-cant-find-crate-for-std +# Rust compiler needs to find the stdlib to link against +rustc -o binary -L ${RUST_INSTALL_LOC}/rustc/lib -L ${RUST_INSTALL_LOC}/rust-std-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib "$@" +chmod +x binary diff --git a/packages/rust/1.62.0/environment b/packages/rust/1.62.0/environment new file mode 100755 index 0000000..2bf6cf5 --- /dev/null +++ b/packages/rust/1.62.0/environment @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export PATH=$PWD/rust-1.62.0-x86_64-unknown-linux-gnu/rustc/bin/:$PATH +export RUST_INSTALL_LOC=$PWD/rust-1.62.0-x86_64-unknown-linux-gnu diff --git a/packages/rust/1.62.0/metadata.json b/packages/rust/1.62.0/metadata.json new file mode 100644 index 0000000..1f7319a --- /dev/null +++ b/packages/rust/1.62.0/metadata.json @@ -0,0 +1,7 @@ +{ + "language": "rust", + "version": "1.56.1", + "aliases": [ + "rs" + ] +} diff --git a/packages/rust/1.62.0/run b/packages/rust/1.62.0/run new file mode 100755 index 0000000..d377dd9 --- /dev/null +++ b/packages/rust/1.62.0/run @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +shift +./binary "$@" diff --git a/packages/rust/1.62.0/test.rs b/packages/rust/1.62.0/test.rs new file mode 100644 index 0000000..9561664 --- /dev/null +++ b/packages/rust/1.62.0/test.rs @@ -0,0 +1,3 @@ +fn main() { + println!("OK"); +} diff --git a/readme.md b/readme.md index 3f49dc6..69d3103 100644 --- a/readme.md +++ b/readme.md @@ -312,6 +312,7 @@ Content-Type: application/json `befunge93`, `brachylog`, `brainfuck`, +`bqn`, `c`, `c++`, `cjam`,