From 4470eb637f8acc53c60f91736cb96e3835dbfb31 Mon Sep 17 00:00:00 2001 From: Omar Brikaa Date: Sat, 4 Jun 2022 22:27:32 +0200 Subject: [PATCH] Add priorities, modify scaffold.sh --- runtimes/priorities/default.nix | 66 +++++++++++++++++++++++++++++++++ runtimes/scaffold.sh | 8 +++- 2 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 runtimes/priorities/default.nix diff --git a/runtimes/priorities/default.nix b/runtimes/priorities/default.nix new file mode 100644 index 0000000..128310a --- /dev/null +++ b/runtimes/priorities/default.nix @@ -0,0 +1,66 @@ +[ + "node-javascript" + "python2" + "python3" + "bash" + "clojure" + "cobol-gnu-cobol" + "crystal" + "dart" + "dash" + "deno-javascript" + "deno-typescript" + "elixir" + "erlang" + "gawk-awk" + "openjdk11_headless-java" + "ruby" + "zig" + "vlang" + "swift" + "node-typescript" + "sqlite" + "rscript" + "raku" + "racket" + "powershell" + "prolog" + "ponylang" + "php" + "perl" + "octave" + "ocaml" + "nim" + "nasm" + "nasm-nasm64" + "mono-csharp" + "lua" + "lolcode" + "sbcl-lisp" + "jvm-kotlin" + "julia" + "jelly" + "openjdk-java" + "iverilog" + "ghc-haskell" + "groovy" + "go" + "gcc-c" + "gcc-c++" + "gcc-d" + "gcc-fortran" + "yabasic" + "emacs" + "gnat-ada" + "rust" + "dotnet-sdk-csharp" + "dotnet-sdk-fsharp" + "dotnet-sdk-fsharp-interactive" + "dotnet-sdk-visual-basic" + "fpc-pascal" + "brainfuck" + "node-coffeescript" + "jvm-scala" + "llvm_ir" + "mono-basic" +] diff --git a/runtimes/scaffold.sh b/runtimes/scaffold.sh index 2a49ef2..11bf5a6 100755 --- a/runtimes/scaffold.sh +++ b/runtimes/scaffold.sh @@ -32,9 +32,13 @@ else .scaffold.nix > $NAME.nix echo "}" >> default.nix - git add $NAME.nix default.nix + sed -i '$d' ./priorities/default.nix + echo " \"$NAME\"" >> ./priorities/default.nix + echo "]" >> ./priorities/default.nix + + git add $NAME.nix default.nix ./priorities echo "Scaffolded $NAME" echo "Edit $NAME.nix to get started" echo "Once you are done, run ./piston test $NAME to test it" -fi \ No newline at end of file +fi