Add the priorities directly in flake.nix

This commit is contained in:
Omar Brikaa 2022-06-05 11:31:49 +02:00
parent b50af13787
commit 3149cd80fa
3 changed files with 8 additions and 73 deletions

View File

@ -65,7 +65,12 @@
"bash-only" = runtimeList ["bash"];
"none" = { };
};
pistonRuntimePriorities = import ./runtimes/priorities;
pistonRuntimePriorities = [
"mono-csharp"
"dotnet-sdk-csharp"
"python3"
"python2"
];
legacyPackages."${system}" = rec {
nosocket = (import ./nosocket { inherit pkgs; }).package;

View File

@ -1,66 +0,0 @@
[
"node-javascript"
"python3"
"python2"
"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"
]

View File

@ -32,13 +32,9 @@ else
.scaffold.nix > $NAME.nix
echo "}" >> default.nix
sed -i '$d' ./priorities/default.nix
echo " \"$NAME\"" >> ./priorities/default.nix
echo "]" >> ./priorities/default.nix
git add $NAME.nix default.nix ./priorities
git add $NAME.nix default.nix
echo "Scaffolded $NAME"
echo "Edit $NAME.nix to get started"
echo "Once you are done, run ./piston test $NAME to test it"
fi
fi