From 8f71c8f4a779975069e85d1642b1b356757c1359 Mon Sep 17 00:00:00 2001 From: Shivansh-007 Date: Wed, 17 Mar 2021 15:12:32 +0530 Subject: [PATCH 01/22] pkg(lua-5.4.2): Add lua 5.4.2 --- packages/lua/5.4.2/build.sh | 14 ++++++++++++++ packages/lua/5.4.2/environment | 4 ++++ packages/lua/5.4.2/metadata.json | 6 ++++++ packages/lua/5.4.2/run | 4 ++++ packages/lua/5.4.2/test.lua | 1 + 5 files changed, 29 insertions(+) create mode 100755 packages/lua/5.4.2/build.sh create mode 100644 packages/lua/5.4.2/environment create mode 100644 packages/lua/5.4.2/metadata.json create mode 100644 packages/lua/5.4.2/run create mode 100644 packages/lua/5.4.2/test.lua diff --git a/packages/lua/5.4.2/build.sh b/packages/lua/5.4.2/build.sh new file mode 100755 index 0000000..8b02f7d --- /dev/null +++ b/packages/lua/5.4.2/build.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +# Put instructions to build your package in here +curl -R -O -L http://www.lua.org/ftp/lua-5.4.2.tar.gz +tar zxf lua-5.4.2.tar.gz +rm lua-5.4.2.tar.gz + +cd lua-5.4.2 +# Building Lua +make linux +# To check that Lua has been built correctly +make test +# Installing Lua +make linux install diff --git a/packages/lua/5.4.2/environment b/packages/lua/5.4.2/environment new file mode 100644 index 0000000..780b668 --- /dev/null +++ b/packages/lua/5.4.2/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export PATH=$PWD/bin:$PATH diff --git a/packages/lua/5.4.2/metadata.json b/packages/lua/5.4.2/metadata.json new file mode 100644 index 0000000..401c03a --- /dev/null +++ b/packages/lua/5.4.2/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "lua", + "version": "5.4.2", + "author": "Shivansh-007 ", + "aliases": ["lua"] +} \ No newline at end of file diff --git a/packages/lua/5.4.2/run b/packages/lua/5.4.2/run new file mode 100644 index 0000000..d23038b --- /dev/null +++ b/packages/lua/5.4.2/run @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put instructions to run the runtime +lua "$@" diff --git a/packages/lua/5.4.2/test.lua b/packages/lua/5.4.2/test.lua new file mode 100644 index 0000000..3f2688f --- /dev/null +++ b/packages/lua/5.4.2/test.lua @@ -0,0 +1 @@ +print("OK") \ No newline at end of file From 6b64c4bb5fa2619a8b344968a4a4abfffdccd8a8 Mon Sep 17 00:00:00 2001 From: Shivansh-007 <69356296+Shivansh-007@users.noreply.github.com> Date: Wed, 17 Mar 2021 15:46:35 +0530 Subject: [PATCH 02/22] pkg(lua-5.4.2): Fix path in environment --- packages/lua/5.4.2/environment | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lua/5.4.2/environment b/packages/lua/5.4.2/environment index 780b668..2b26fe3 100644 --- a/packages/lua/5.4.2/environment +++ b/packages/lua/5.4.2/environment @@ -1,4 +1,4 @@ #!/usr/bin/env bash # Put 'export' statements here for environment variables -export PATH=$PWD/bin:$PATH +export PATH="lua-5.4.2/src" From cb5ad603d0d60f64dea9b163d5c56e5b13cec6b8 Mon Sep 17 00:00:00 2001 From: "Vargas, Dan" Date: Wed, 17 Mar 2021 12:29:10 -0500 Subject: [PATCH 03/22] pkg(haskell-9.0.1): Add deps to api container --- api/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/Dockerfile b/api/Dockerfile index db35ff7..6a1156d 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -5,7 +5,7 @@ RUN for i in $(seq 1001 1500); do \ useradd -M runner$i -g $i -u $i ; \ done RUN apt-get update && \ - apt-get install -y libxml2 gnupg tar coreutils util-linux libc6-dev binutils build-essential locales libpcre3-dev libevent-dev && \ + apt-get install -y libxml2 gnupg tar coreutils util-linux libc6-dev binutils build-essential locales libpcre3-dev libevent-dev libgmp3-dev && \ rm -rf /var/lib/apt/lists/* RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen From fdf236a789f94c4a2148ce6b4131559f1030b94d Mon Sep 17 00:00:00 2001 From: "Vargas, Dan" Date: Wed, 17 Mar 2021 12:35:16 -0500 Subject: [PATCH 04/22] pkg(haskell-9.0.1): Add haskell 9.0.1 --- packages/haskell/9.0.1/build.sh | 19 +++++++++++++++++++ packages/haskell/9.0.1/compile | 5 +++++ packages/haskell/9.0.1/environment | 1 + packages/haskell/9.0.1/metadata.json | 6 ++++++ packages/haskell/9.0.1/run | 4 ++++ packages/haskell/9.0.1/test.hs | 1 + 6 files changed, 36 insertions(+) create mode 100755 packages/haskell/9.0.1/build.sh create mode 100644 packages/haskell/9.0.1/compile create mode 100644 packages/haskell/9.0.1/environment create mode 100644 packages/haskell/9.0.1/metadata.json create mode 100644 packages/haskell/9.0.1/run create mode 100644 packages/haskell/9.0.1/test.hs diff --git a/packages/haskell/9.0.1/build.sh b/packages/haskell/9.0.1/build.sh new file mode 100755 index 0000000..50d63c2 --- /dev/null +++ b/packages/haskell/9.0.1/build.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +PREFIX=$(realpath $(dirname $0)) + +mkdir -p build + +cd build + +# Platform specific because a true source compile would require GHC to be installed already on the latest +curl -L "https://downloads.haskell.org/~ghc/9.0.1/ghc-9.0.1-x86_64-deb10-linux.tar.xz" -o ghc.tar.xz +tar xf ghc.tar.xz --strip-components=1 +rm ghc.tar.xz + +./configure --prefix="$PREFIX" +make install -j$(nproc) + +cd ../ + +rm -rf build diff --git a/packages/haskell/9.0.1/compile b/packages/haskell/9.0.1/compile new file mode 100644 index 0000000..2dd42e9 --- /dev/null +++ b/packages/haskell/9.0.1/compile @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# Compile haskell file(s) +ghc -dynamic -v0 -o out "$@" +chmod +x out diff --git a/packages/haskell/9.0.1/environment b/packages/haskell/9.0.1/environment new file mode 100644 index 0000000..bd0ff98 --- /dev/null +++ b/packages/haskell/9.0.1/environment @@ -0,0 +1 @@ +export PATH=$PWD/bin:$PATH \ No newline at end of file diff --git a/packages/haskell/9.0.1/metadata.json b/packages/haskell/9.0.1/metadata.json new file mode 100644 index 0000000..c6fae6d --- /dev/null +++ b/packages/haskell/9.0.1/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "haskell", + "version": "9.0.1", + "author": "Dan Vargas ", + "aliases": ["haskell", "hs"] +} \ No newline at end of file diff --git a/packages/haskell/9.0.1/run b/packages/haskell/9.0.1/run new file mode 100644 index 0000000..6955ba9 --- /dev/null +++ b/packages/haskell/9.0.1/run @@ -0,0 +1,4 @@ +#!/bin/bash + +shift # Filename is only used to compile +./out "$@" diff --git a/packages/haskell/9.0.1/test.hs b/packages/haskell/9.0.1/test.hs new file mode 100644 index 0000000..a8dd75a --- /dev/null +++ b/packages/haskell/9.0.1/test.hs @@ -0,0 +1 @@ +main = putStrLn "OK" \ No newline at end of file From 992a5f52fcb74d1063b43a018f9a2946f977a261 Mon Sep 17 00:00:00 2001 From: Victor Frazao Date: Wed, 17 Mar 2021 18:26:59 -0400 Subject: [PATCH 05/22] pkg(rust-1.50.0): Fix run file to remove filename from being passed to binary --- packages/rust/1.50.0/run | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/rust/1.50.0/run b/packages/rust/1.50.0/run index f66526f..d377dd9 100644 --- a/packages/rust/1.50.0/run +++ b/packages/rust/1.50.0/run @@ -1,3 +1,4 @@ #!/usr/bin/env bash +shift ./binary "$@" From 09c9c13d07e1fb6a13dcf34d9decd279432c5412 Mon Sep 17 00:00:00 2001 From: "Vargas, Dan" Date: Wed, 17 Mar 2021 18:10:35 -0500 Subject: [PATCH 06/22] pkg(lisp-2.1.2): Add lisp (SBCL) 2.1.2 --- packages/lisp/2.1.2/build.sh | 19 +++++++++++++++++++ packages/lisp/2.1.2/environment | 4 ++++ packages/lisp/2.1.2/metadata.json | 6 ++++++ packages/lisp/2.1.2/run | 4 ++++ packages/lisp/2.1.2/test.cl | 1 + 5 files changed, 34 insertions(+) create mode 100755 packages/lisp/2.1.2/build.sh create mode 100644 packages/lisp/2.1.2/environment create mode 100644 packages/lisp/2.1.2/metadata.json create mode 100644 packages/lisp/2.1.2/run create mode 100644 packages/lisp/2.1.2/test.cl diff --git a/packages/lisp/2.1.2/build.sh b/packages/lisp/2.1.2/build.sh new file mode 100755 index 0000000..37f1f8a --- /dev/null +++ b/packages/lisp/2.1.2/build.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +# Put instructions to build your package in here +PREFIX=$(realpath $(dirname $0)) + +mkdir -p build + +cd build + +# Prebuilt binary install since source compile requires lisp to be installed already +curl -L "http://prdownloads.sourceforge.net/sbcl/sbcl-2.1.2-x86-64-linux-binary.tar.bz2" -o sbcl.tar.bz2 +tar xf sbcl.tar.bz2 --strip-components=1 +rm sbcl.tar.bz2 + +INSTALL_ROOT=$PREFIX sh install.sh + +cd ../ + +rm -rf build diff --git a/packages/lisp/2.1.2/environment b/packages/lisp/2.1.2/environment new file mode 100644 index 0000000..780b668 --- /dev/null +++ b/packages/lisp/2.1.2/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export PATH=$PWD/bin:$PATH diff --git a/packages/lisp/2.1.2/metadata.json b/packages/lisp/2.1.2/metadata.json new file mode 100644 index 0000000..fd35513 --- /dev/null +++ b/packages/lisp/2.1.2/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "lisp", + "version": "2.1.2", + "aliases": ["lisp","cl","sbcl","commonlisp"], + "author": "Dan Vargas " +} diff --git a/packages/lisp/2.1.2/run b/packages/lisp/2.1.2/run new file mode 100644 index 0000000..74a5cf3 --- /dev/null +++ b/packages/lisp/2.1.2/run @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put instructions to run the runtime +sbcl --script "$@" diff --git a/packages/lisp/2.1.2/test.cl b/packages/lisp/2.1.2/test.cl new file mode 100644 index 0000000..1de92b7 --- /dev/null +++ b/packages/lisp/2.1.2/test.cl @@ -0,0 +1 @@ +(write-line "OK") \ No newline at end of file From 599b1f793d03ae1246badd874e41f30ffe29b585 Mon Sep 17 00:00:00 2001 From: Dan Vargas Date: Wed, 17 Mar 2021 20:49:21 -0500 Subject: [PATCH 07/22] pkg(nim-1.4.4): Add nim 1.4.4 --- packages/nim/1.4.4/build.sh | 18 ++++++++++++++++++ packages/nim/1.4.4/compile | 5 +++++ packages/nim/1.4.4/environment | 1 + packages/nim/1.4.4/metadata.json | 6 ++++++ packages/nim/1.4.4/run | 4 ++++ packages/nim/1.4.4/test.nim | 1 + 6 files changed, 35 insertions(+) create mode 100755 packages/nim/1.4.4/build.sh create mode 100644 packages/nim/1.4.4/compile create mode 100644 packages/nim/1.4.4/environment create mode 100644 packages/nim/1.4.4/metadata.json create mode 100644 packages/nim/1.4.4/run create mode 100644 packages/nim/1.4.4/test.nim diff --git a/packages/nim/1.4.4/build.sh b/packages/nim/1.4.4/build.sh new file mode 100755 index 0000000..1bb0bee --- /dev/null +++ b/packages/nim/1.4.4/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.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 diff --git a/packages/nim/1.4.4/compile b/packages/nim/1.4.4/compile new file mode 100644 index 0000000..91dc0ba --- /dev/null +++ b/packages/nim/1.4.4/compile @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# Compile nim file(s) +nim --hints:off --out:out --nimcache:./ c "$@" +chmod +x out diff --git a/packages/nim/1.4.4/environment b/packages/nim/1.4.4/environment new file mode 100644 index 0000000..872a1f3 --- /dev/null +++ b/packages/nim/1.4.4/environment @@ -0,0 +1 @@ +export PATH=$PWD/nim/bin:$PATH \ No newline at end of file diff --git a/packages/nim/1.4.4/metadata.json b/packages/nim/1.4.4/metadata.json new file mode 100644 index 0000000..6f88382 --- /dev/null +++ b/packages/nim/1.4.4/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "nim", + "version": "1.4.4", + "author": "Dan Vargas ", + "aliases": ["nim"] +} \ No newline at end of file diff --git a/packages/nim/1.4.4/run b/packages/nim/1.4.4/run new file mode 100644 index 0000000..6955ba9 --- /dev/null +++ b/packages/nim/1.4.4/run @@ -0,0 +1,4 @@ +#!/bin/bash + +shift # Filename is only used to compile +./out "$@" diff --git a/packages/nim/1.4.4/test.nim b/packages/nim/1.4.4/test.nim new file mode 100644 index 0000000..6c57628 --- /dev/null +++ b/packages/nim/1.4.4/test.nim @@ -0,0 +1 @@ +echo("OK") \ No newline at end of file From b8aa60c4ab511708e16bbe23a4a156838aaedb25 Mon Sep 17 00:00:00 2001 From: Dan Vargas Date: Wed, 17 Mar 2021 22:04:43 -0500 Subject: [PATCH 08/22] pkg(osabie-1.0.1): Fix osabie args --- packages/osabie/1.0.1/run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/osabie/1.0.1/run b/packages/osabie/1.0.1/run index 2f99ab0..fde91e3 100644 --- a/packages/osabie/1.0.1/run +++ b/packages/osabie/1.0.1/run @@ -1,4 +1,4 @@ #!/bin/bash -# Put instructions to run the runtime -osabie "$@" \ No newline at end of file +# osabie only takes filename and stdin +osabie "$1" \ No newline at end of file From 50c4e0fae566ed396f52bfb26f2e1780bacdb207 Mon Sep 17 00:00:00 2001 From: Dan Vargas Date: Wed, 17 Mar 2021 21:56:33 -0500 Subject: [PATCH 09/22] pkg(paradoc-0.6.0): Add paradoc 0.6.0 --- packages/paradoc/0.6.0/build.sh | 5 +++++ packages/paradoc/0.6.0/environment | 2 ++ packages/paradoc/0.6.0/metadata.json | 6 ++++++ packages/paradoc/0.6.0/run | 4 ++++ packages/paradoc/0.6.0/test.paradoc | 1 + 5 files changed, 18 insertions(+) create mode 100755 packages/paradoc/0.6.0/build.sh create mode 100644 packages/paradoc/0.6.0/environment create mode 100644 packages/paradoc/0.6.0/metadata.json create mode 100644 packages/paradoc/0.6.0/run create mode 100644 packages/paradoc/0.6.0/test.paradoc diff --git a/packages/paradoc/0.6.0/build.sh b/packages/paradoc/0.6.0/build.sh new file mode 100755 index 0000000..d3801b9 --- /dev/null +++ b/packages/paradoc/0.6.0/build.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +source ../../python/3.9.1/build.sh + +git clone -q https://github.com/betaveros/paradoc.git paradoc diff --git a/packages/paradoc/0.6.0/environment b/packages/paradoc/0.6.0/environment new file mode 100644 index 0000000..4ca7a04 --- /dev/null +++ b/packages/paradoc/0.6.0/environment @@ -0,0 +1,2 @@ +export PYTHONPATH=$PYTHONPATH:$PWD/paradoc +export PATH=$PWD/bin:$PATH \ No newline at end of file diff --git a/packages/paradoc/0.6.0/metadata.json b/packages/paradoc/0.6.0/metadata.json new file mode 100644 index 0000000..8037f2a --- /dev/null +++ b/packages/paradoc/0.6.0/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "paradoc", + "version": "0.6.0", + "author": "Dan Vargas ", + "aliases": ["paradoc"] +} \ No newline at end of file diff --git a/packages/paradoc/0.6.0/run b/packages/paradoc/0.6.0/run new file mode 100644 index 0000000..718ee98 --- /dev/null +++ b/packages/paradoc/0.6.0/run @@ -0,0 +1,4 @@ +#!/bin/bash + +# Paradoc only takes filename and stdin +python3 -m paradoc "$1" diff --git a/packages/paradoc/0.6.0/test.paradoc b/packages/paradoc/0.6.0/test.paradoc new file mode 100644 index 0000000..45021e7 --- /dev/null +++ b/packages/paradoc/0.6.0/test.paradoc @@ -0,0 +1 @@ +"OK" \ No newline at end of file From 7f07024129196ea18db0eabeb297ba43b210091b Mon Sep 17 00:00:00 2001 From: Shivansh-007 <69356296+Shivansh-007@users.noreply.github.com> Date: Thu, 18 Mar 2021 09:07:59 +0530 Subject: [PATCH 10/22] pkg(lua-5.4.2): Add PATH to indicate we are chaining them. PATH is a list of paths the shell should look for the binary. --- packages/lua/5.4.2/environment | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lua/5.4.2/environment b/packages/lua/5.4.2/environment index 2b26fe3..5d94f5c 100644 --- a/packages/lua/5.4.2/environment +++ b/packages/lua/5.4.2/environment @@ -1,4 +1,4 @@ #!/usr/bin/env bash # Put 'export' statements here for environment variables -export PATH="lua-5.4.2/src" +export PATH="lua-5.4.2/src:$PATH" From 3c60ae75037e41389b53dedec1ce2e94c54aa7c8 Mon Sep 17 00:00:00 2001 From: Shivansh-007 <69356296+Shivansh-007@users.noreply.github.com> Date: Thu, 18 Mar 2021 09:56:40 +0530 Subject: [PATCH 11/22] pkg(lua-5.4.2): Add PWD before specifying the path --- packages/lua/5.4.2/environment | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lua/5.4.2/environment b/packages/lua/5.4.2/environment index 5d94f5c..936b3b6 100644 --- a/packages/lua/5.4.2/environment +++ b/packages/lua/5.4.2/environment @@ -1,4 +1,4 @@ #!/usr/bin/env bash # Put 'export' statements here for environment variables -export PATH="lua-5.4.2/src:$PATH" +export PATH="$PWD/lua-5.4.2/src:$PATH" From 7744eea4595eb26c13128bca276846d1f634c6cb Mon Sep 17 00:00:00 2001 From: Shivansh-007 Date: Thu, 18 Mar 2021 12:48:28 +0530 Subject: [PATCH 12/22] pkg(lolcode-0.11.2): Add lolcode 0.11.2 --- packages/lolcode/0.11.2/build.sh | 13 +++++++++++++ packages/lolcode/0.11.2/environment | 4 ++++ packages/lolcode/0.11.2/metadata.json | 6 ++++++ packages/lolcode/0.11.2/run | 4 ++++ packages/lolcode/0.11.2/test.lol | 4 ++++ 5 files changed, 31 insertions(+) create mode 100755 packages/lolcode/0.11.2/build.sh create mode 100644 packages/lolcode/0.11.2/environment create mode 100644 packages/lolcode/0.11.2/metadata.json create mode 100644 packages/lolcode/0.11.2/run create mode 100644 packages/lolcode/0.11.2/test.lol diff --git a/packages/lolcode/0.11.2/build.sh b/packages/lolcode/0.11.2/build.sh new file mode 100755 index 0000000..33ed9f8 --- /dev/null +++ b/packages/lolcode/0.11.2/build.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +PREFIX=$(realpath $(dirname $0)) + +# Cloning lolcode source +git clone https://github.com/justinmeza/lci.git lolcode +cd lolcode + +# Building and installing lolcode +./install.py --prefix="$PREFIX" + +# Cleaning up +cd ../ && rm -rf lolcode \ No newline at end of file diff --git a/packages/lolcode/0.11.2/environment b/packages/lolcode/0.11.2/environment new file mode 100644 index 0000000..780b668 --- /dev/null +++ b/packages/lolcode/0.11.2/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export PATH=$PWD/bin:$PATH diff --git a/packages/lolcode/0.11.2/metadata.json b/packages/lolcode/0.11.2/metadata.json new file mode 100644 index 0000000..80e46ea --- /dev/null +++ b/packages/lolcode/0.11.2/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "lolcode", + "version": "0.11.2", + "author": "Shivansh-007 ", + "aliases": ["lol", "lci"] +} diff --git a/packages/lolcode/0.11.2/run b/packages/lolcode/0.11.2/run new file mode 100644 index 0000000..ce329fb --- /dev/null +++ b/packages/lolcode/0.11.2/run @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put instructions to run the runtime +lolcode "$@" diff --git a/packages/lolcode/0.11.2/test.lol b/packages/lolcode/0.11.2/test.lol new file mode 100644 index 0000000..f93f722 --- /dev/null +++ b/packages/lolcode/0.11.2/test.lol @@ -0,0 +1,4 @@ +HAI 1.2 + CAN HAS STDIO? + VISIBLE "OK" +KTHXBYE From d50403230caaa0f026f5251346a501de7c5a6c4c Mon Sep 17 00:00:00 2001 From: "Vargas, Dan" Date: Thu, 18 Mar 2021 09:13:02 -0500 Subject: [PATCH 13/22] pkg(prolog-8.2.4): Add deps for prolog --- api/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/Dockerfile b/api/Dockerfile index 6a1156d..62b6d24 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -5,7 +5,7 @@ RUN for i in $(seq 1001 1500); do \ useradd -M runner$i -g $i -u $i ; \ done RUN apt-get update && \ - apt-get install -y libxml2 gnupg tar coreutils util-linux libc6-dev binutils build-essential locales libpcre3-dev libevent-dev libgmp3-dev && \ + apt-get install -y libxml2 gnupg tar coreutils util-linux libc6-dev binutils build-essential locales libpcre3-dev libevent-dev libgmp3-dev libncurses6 && \ rm -rf /var/lib/apt/lists/* RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen From d5723a11d2b891509b2fbad1e53a8751ff7f2950 Mon Sep 17 00:00:00 2001 From: "Vargas, Dan" Date: Thu, 18 Mar 2021 09:20:37 -0500 Subject: [PATCH 14/22] pkg(prolog-8.2.4): Add prolog 8.2.4 --- packages/prolog/8.2.4/build.sh | 22 ++++++++++++++++++++++ packages/prolog/8.2.4/environment | 1 + packages/prolog/8.2.4/metadata.json | 6 ++++++ packages/prolog/8.2.4/run | 4 ++++ packages/prolog/8.2.4/test.prolog | 1 + 5 files changed, 34 insertions(+) create mode 100755 packages/prolog/8.2.4/build.sh create mode 100644 packages/prolog/8.2.4/environment create mode 100644 packages/prolog/8.2.4/metadata.json create mode 100644 packages/prolog/8.2.4/run create mode 100644 packages/prolog/8.2.4/test.prolog diff --git a/packages/prolog/8.2.4/build.sh b/packages/prolog/8.2.4/build.sh new file mode 100755 index 0000000..3473d69 --- /dev/null +++ b/packages/prolog/8.2.4/build.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +PREFIX=$(realpath $(dirname $0)) + +mkdir -p build + +cd build + +# Source compile +curl -L "https://www.swi-prolog.org/download/stable/src/swipl-8.2.4.tar.gz" -o swipl.tar.gz +tar xzf swipl.tar.gz --strip-components=1 +rm swipl.tar.gz + +mkdir build +cd build +cmake -DCMAKE_INSTALL_PREFIX="$PREFIX" -DSWIPL_PACKAGES_JAVA=OFF -DSWIPL_PACKAGES_X=OFF -DMULTI_THREADED=OFF -DINSTALL_DOCUMENTATION=OFF .. +make -j$(nproc) +make install -j$(nproc) + +cd ../../ + +rm -rf build diff --git a/packages/prolog/8.2.4/environment b/packages/prolog/8.2.4/environment new file mode 100644 index 0000000..bd0ff98 --- /dev/null +++ b/packages/prolog/8.2.4/environment @@ -0,0 +1 @@ +export PATH=$PWD/bin:$PATH \ No newline at end of file diff --git a/packages/prolog/8.2.4/metadata.json b/packages/prolog/8.2.4/metadata.json new file mode 100644 index 0000000..8238856 --- /dev/null +++ b/packages/prolog/8.2.4/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "prolog", + "version": "8.2.4", + "aliases": ["prolog","plg"], + "author": "Dan Vargas " +} diff --git a/packages/prolog/8.2.4/run b/packages/prolog/8.2.4/run new file mode 100644 index 0000000..7609191 --- /dev/null +++ b/packages/prolog/8.2.4/run @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put instructions to run the runtime +swipl -g true -t halt "$@" diff --git a/packages/prolog/8.2.4/test.prolog b/packages/prolog/8.2.4/test.prolog new file mode 100644 index 0000000..290ef7c --- /dev/null +++ b/packages/prolog/8.2.4/test.prolog @@ -0,0 +1 @@ +:- write('OK'), nl. \ No newline at end of file From 389c9be86ccb2b6a553930ff2896706d287b2d48 Mon Sep 17 00:00:00 2001 From: "Vargas, Dan" Date: Thu, 18 Mar 2021 13:34:03 -0500 Subject: [PATCH 15/22] pkg(scala-3.0.0): Add scala 3.0.0 --- packages/scala/3.0.0/build.sh | 16 ++++++++++++++++ packages/scala/3.0.0/environment | 5 +++++ packages/scala/3.0.0/metadata.json | 6 ++++++ packages/scala/3.0.0/run | 4 ++++ packages/scala/3.0.0/test.scala | 3 +++ 5 files changed, 34 insertions(+) create mode 100755 packages/scala/3.0.0/build.sh create mode 100644 packages/scala/3.0.0/environment create mode 100644 packages/scala/3.0.0/metadata.json create mode 100644 packages/scala/3.0.0/run create mode 100644 packages/scala/3.0.0/test.scala diff --git a/packages/scala/3.0.0/build.sh b/packages/scala/3.0.0/build.sh new file mode 100755 index 0000000..0a3fcf7 --- /dev/null +++ b/packages/scala/3.0.0/build.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +# Scala depends on Java +mkdir -p java +cd java +curl "https://download.java.net/java/GA/jdk15.0.2/0d1cfde4252546c6931946de8db48ee2/7/GPL/openjdk-15.0.2_linux-x64_bin.tar.gz" -o java.tar.gz +tar xzf java.tar.gz --strip-components=1 +rm java.tar.gz +cd .. + +mkdir -p scala +cd scala +curl -L "https://github.com/lampepfl/dotty/releases/download/3.0.0-RC1/scala3-3.0.0-RC1.tar.gz" -o scala.tar.gz +tar -xzf scala.tar.gz --strip-components=1 +rm scala.tar.gz +cd .. diff --git a/packages/scala/3.0.0/environment b/packages/scala/3.0.0/environment new file mode 100644 index 0000000..40244a6 --- /dev/null +++ b/packages/scala/3.0.0/environment @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# Scala requires JAVA_HOME to be set +export JAVA_HOME=$PWD/java +export PATH=$PWD/scala/bin:$PATH diff --git a/packages/scala/3.0.0/metadata.json b/packages/scala/3.0.0/metadata.json new file mode 100644 index 0000000..6227bb9 --- /dev/null +++ b/packages/scala/3.0.0/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "scala", + "version": "3.0.0", + "aliases": ["scala","sc"], + "author": "Dan Vargas " +} diff --git a/packages/scala/3.0.0/run b/packages/scala/3.0.0/run new file mode 100644 index 0000000..e8bd3c2 --- /dev/null +++ b/packages/scala/3.0.0/run @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put instructions to run the runtime +scala -color never "$@" diff --git a/packages/scala/3.0.0/test.scala b/packages/scala/3.0.0/test.scala new file mode 100644 index 0000000..bf4cabc --- /dev/null +++ b/packages/scala/3.0.0/test.scala @@ -0,0 +1,3 @@ +@main def run(): Unit = { + println("OK") +} \ No newline at end of file From aa0a7ac35f4806ef7378e4b165f46455b482ecc9 Mon Sep 17 00:00:00 2001 From: "Vargas, Dan" Date: Thu, 18 Mar 2021 15:08:51 -0500 Subject: [PATCH 16/22] pkg(swift-5.3.3): Add deps for swift --- api/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/Dockerfile b/api/Dockerfile index 62b6d24..96e64ef 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -5,7 +5,7 @@ RUN for i in $(seq 1001 1500); do \ useradd -M runner$i -g $i -u $i ; \ done RUN apt-get update && \ - apt-get install -y libxml2 gnupg tar coreutils util-linux libc6-dev binutils build-essential locales libpcre3-dev libevent-dev libgmp3-dev libncurses6 && \ + apt-get install -y libxml2 gnupg tar coreutils util-linux libc6-dev binutils build-essential locales libpcre3-dev libevent-dev libgmp3-dev libncurses6 libncurses5 libedit-dev && \ rm -rf /var/lib/apt/lists/* RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen From 0d1906e1b603fc9ad0831f102290b24cbcf0703a Mon Sep 17 00:00:00 2001 From: "Vargas, Dan" Date: Thu, 18 Mar 2021 15:34:25 -0500 Subject: [PATCH 17/22] pkg(swift-5.3.3): Add swift 5.3.3 --- packages/swift/5.3.3/build.sh | 6 ++++++ packages/swift/5.3.3/environment | 4 ++++ packages/swift/5.3.3/metadata.json | 6 ++++++ packages/swift/5.3.3/run | 4 ++++ packages/swift/5.3.3/test.swift | 1 + 5 files changed, 21 insertions(+) create mode 100755 packages/swift/5.3.3/build.sh create mode 100644 packages/swift/5.3.3/environment create mode 100644 packages/swift/5.3.3/metadata.json create mode 100644 packages/swift/5.3.3/run create mode 100644 packages/swift/5.3.3/test.swift diff --git a/packages/swift/5.3.3/build.sh b/packages/swift/5.3.3/build.sh new file mode 100755 index 0000000..5070b12 --- /dev/null +++ b/packages/swift/5.3.3/build.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +# Binary install +curl -L "https://swift.org/builds/swift-5.3.3-release/ubuntu1804/swift-5.3.3-RELEASE/swift-5.3.3-RELEASE-ubuntu18.04.tar.gz" -o swift.tar.gz +tar xzf swift.tar.gz --strip-components=2 +rm swift.tar.gz diff --git a/packages/swift/5.3.3/environment b/packages/swift/5.3.3/environment new file mode 100644 index 0000000..780b668 --- /dev/null +++ b/packages/swift/5.3.3/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export PATH=$PWD/bin:$PATH diff --git a/packages/swift/5.3.3/metadata.json b/packages/swift/5.3.3/metadata.json new file mode 100644 index 0000000..679b8da --- /dev/null +++ b/packages/swift/5.3.3/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "swift", + "version": "5.3.3", + "aliases": ["swift"], + "author": "Dan Vargas " +} diff --git a/packages/swift/5.3.3/run b/packages/swift/5.3.3/run new file mode 100644 index 0000000..5d29e87 --- /dev/null +++ b/packages/swift/5.3.3/run @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Setting clang cache to current dir to avoid permission error on /tmp +swift -module-cache-path . "$@" diff --git a/packages/swift/5.3.3/test.swift b/packages/swift/5.3.3/test.swift new file mode 100644 index 0000000..3f2688f --- /dev/null +++ b/packages/swift/5.3.3/test.swift @@ -0,0 +1 @@ +print("OK") \ No newline at end of file From fb95a4dbc093e2c863113541e342d53034a1d1ba Mon Sep 17 00:00:00 2001 From: "Vargas, Dan" Date: Thu, 18 Mar 2021 16:45:14 -0500 Subject: [PATCH 18/22] pkg(zig-0.7.1): Add zig 0.7.1 --- packages/zig/0.7.1/build.sh | 10 ++++++++++ packages/zig/0.7.1/compile | 4 ++++ packages/zig/0.7.1/environment | 4 ++++ packages/zig/0.7.1/metadata.json | 6 ++++++ packages/zig/0.7.1/run | 4 ++++ packages/zig/0.7.1/test.zig | 6 ++++++ 6 files changed, 34 insertions(+) create mode 100755 packages/zig/0.7.1/build.sh create mode 100644 packages/zig/0.7.1/compile create mode 100644 packages/zig/0.7.1/environment create mode 100644 packages/zig/0.7.1/metadata.json create mode 100644 packages/zig/0.7.1/run create mode 100644 packages/zig/0.7.1/test.zig diff --git a/packages/zig/0.7.1/build.sh b/packages/zig/0.7.1/build.sh new file mode 100755 index 0000000..9714794 --- /dev/null +++ b/packages/zig/0.7.1/build.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +mkdir -p bin +cd bin/ + +curl -L "https://ziglang.org/download/0.7.1/zig-linux-x86_64-0.7.1.tar.xz" -o zig.tar.xz +tar xf zig.tar.xz --strip-components=1 +rm zig.tar.xz + +cd ../ \ No newline at end of file diff --git a/packages/zig/0.7.1/compile b/packages/zig/0.7.1/compile new file mode 100644 index 0000000..af7e9eb --- /dev/null +++ b/packages/zig/0.7.1/compile @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# optimizing for small programs +zig build-exe -O ReleaseSmall --color off --cache-dir . --global-cache-dir . --name out "$@" diff --git a/packages/zig/0.7.1/environment b/packages/zig/0.7.1/environment new file mode 100644 index 0000000..a85000c --- /dev/null +++ b/packages/zig/0.7.1/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# compiler path +export PATH=$PWD/bin:$PATH diff --git a/packages/zig/0.7.1/metadata.json b/packages/zig/0.7.1/metadata.json new file mode 100644 index 0000000..3de611e --- /dev/null +++ b/packages/zig/0.7.1/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "zig", + "version": "0.7.1", + "aliases": ["zig"], + "author": "Dan Vargas " +} diff --git a/packages/zig/0.7.1/run b/packages/zig/0.7.1/run new file mode 100644 index 0000000..d96e06f --- /dev/null +++ b/packages/zig/0.7.1/run @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +shift # Filename is only used in compile step, so we can take it out here +./out "$@" diff --git a/packages/zig/0.7.1/test.zig b/packages/zig/0.7.1/test.zig new file mode 100644 index 0000000..548c703 --- /dev/null +++ b/packages/zig/0.7.1/test.zig @@ -0,0 +1,6 @@ +const std = @import("std"); + +pub fn main() !void { + const stdout = std.io.getStdOut().writer(); + try stdout.print("OK\n", .{}); +} \ No newline at end of file From 228880ba9bda2fcc76f90c6970816902fb384dfc Mon Sep 17 00:00:00 2001 From: Shivansh-007 <69356296+Shivansh-007@users.noreply.github.com> Date: Fri, 19 Mar 2021 03:55:25 +0530 Subject: [PATCH 19/22] pkg(lolcode-0.11.2): Shift to cmake/make rather then running install.py --- packages/lolcode/0.11.2/build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/lolcode/0.11.2/build.sh b/packages/lolcode/0.11.2/build.sh index 33ed9f8..72a9ea3 100755 --- a/packages/lolcode/0.11.2/build.sh +++ b/packages/lolcode/0.11.2/build.sh @@ -7,7 +7,9 @@ git clone https://github.com/justinmeza/lci.git lolcode cd lolcode # Building and installing lolcode -./install.py --prefix="$PREFIX" +cmake -DCMAKE_INSTALL_PREFIX:STRING="$PREFIX" . +make -j$(nproc) +make install -j$(nproc) # Cleaning up -cd ../ && rm -rf lolcode \ No newline at end of file +cd ../ && rm -rf lolcode From 412e1ec7ee76f97d3412903553983866e98e80fb Mon Sep 17 00:00:00 2001 From: Shivansh-007 <69356296+Shivansh-007@users.noreply.github.com> Date: Fri, 19 Mar 2021 04:05:43 +0530 Subject: [PATCH 20/22] =?UTF-8?q?pkg(lolcode-0.11.2):=20The=20binary=20is?= =?UTF-8?q?=20"lci"=20not=20"lolcode=E2=80=9D.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/lolcode/0.11.2/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lolcode/0.11.2/run b/packages/lolcode/0.11.2/run index ce329fb..d4e6725 100644 --- a/packages/lolcode/0.11.2/run +++ b/packages/lolcode/0.11.2/run @@ -1,4 +1,4 @@ #!/usr/bin/env bash # Put instructions to run the runtime -lolcode "$@" +lci "$@" From a024c9193d05f4d3d509c6d8538ff211e22e81c6 Mon Sep 17 00:00:00 2001 From: Ethan Edwards Date: Thu, 18 Mar 2021 19:45:46 -0400 Subject: [PATCH 21/22] Fix syntax error in shell.nix --- shell.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell.nix b/shell.nix index f43b1b4..d3c1b54 100644 --- a/shell.nix +++ b/shell.nix @@ -1,5 +1,5 @@ { pkgs ? import {} }: pkgs.mkShell { # nativeBuildInputs is usually what you want -- tools you need to run - nativeBuildInputs = [ pkgs.nodejs-15_x pkgs.yarn pkgs.jq ]; -} \ No newline at end of file + nativeBuildInputs = with pkgs; [ nodejs-15_x yarn jq ]; +} From e57ef95e0276fad3c16f671ca03e858402bb2587 Mon Sep 17 00:00:00 2001 From: Dan Vargas Date: Thu, 18 Mar 2021 19:28:35 -0500 Subject: [PATCH 22/22] pkg(emacs-27.1.0): Add emacs 27.1.0 --- packages/emacs/27.1.0/build.sh | 24 ++++++++++++++++++++++++ packages/emacs/27.1.0/environment | 4 ++++ packages/emacs/27.1.0/metadata.json | 6 ++++++ packages/emacs/27.1.0/run | 4 ++++ packages/emacs/27.1.0/test.el | 1 + 5 files changed, 39 insertions(+) create mode 100755 packages/emacs/27.1.0/build.sh create mode 100644 packages/emacs/27.1.0/environment create mode 100644 packages/emacs/27.1.0/metadata.json create mode 100644 packages/emacs/27.1.0/run create mode 100644 packages/emacs/27.1.0/test.el diff --git a/packages/emacs/27.1.0/build.sh b/packages/emacs/27.1.0/build.sh new file mode 100755 index 0000000..a4aecc6 --- /dev/null +++ b/packages/emacs/27.1.0/build.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +export PATH=$PWD/bin:$PATH + +PREFIX=$(realpath $(dirname $0)) + +mkdir -p build + +cd build + +# Emacs version 27.1 supports Docker builds +# Otherwise, older versions will work too, but you will have to disable `/proc/sys/kernel/randomize_va_space` which is less secure +curl -L "http://ftpmirror.gnu.org/emacs/emacs-27.1.tar.gz" -o emacs.tar.gz +tar xzf emacs.tar.gz --strip-components=1 +rm emacs.tar.gz + +# Building without all that X11 stuff +./configure --prefix="$PREFIX" --with-x=no --with-x-toolkit=no --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no --with-gnutls=no +make -j$(nproc) +make install -j$(nproc) + +cd .. + +rm -rf build diff --git a/packages/emacs/27.1.0/environment b/packages/emacs/27.1.0/environment new file mode 100644 index 0000000..780b668 --- /dev/null +++ b/packages/emacs/27.1.0/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export PATH=$PWD/bin:$PATH diff --git a/packages/emacs/27.1.0/metadata.json b/packages/emacs/27.1.0/metadata.json new file mode 100644 index 0000000..bcd3d08 --- /dev/null +++ b/packages/emacs/27.1.0/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "emacs", + "version": "27.1.0", + "author": "Dan Vargas ", + "aliases": ["emacs", "el", "elisp"] +} \ No newline at end of file diff --git a/packages/emacs/27.1.0/run b/packages/emacs/27.1.0/run new file mode 100644 index 0000000..8bf46e4 --- /dev/null +++ b/packages/emacs/27.1.0/run @@ -0,0 +1,4 @@ +#!/bin/bash + +# Put instructions to run the runtime +emacs -Q --script "$@" \ No newline at end of file diff --git a/packages/emacs/27.1.0/test.el b/packages/emacs/27.1.0/test.el new file mode 100644 index 0000000..ebe0215 --- /dev/null +++ b/packages/emacs/27.1.0/test.el @@ -0,0 +1 @@ +(princ "OK") \ No newline at end of file