Rename runtime priorities to mainstream runtimes

This commit is contained in:
Omar Brikaa 2022-06-05 12:24:56 +02:00
parent 26203f6049
commit a664cd4d49
2 changed files with 6 additions and 11 deletions

View File

@ -45,18 +45,18 @@ expressWs(app);
.toString();
const runtime_names_unordered = JSON.parse(runtimes_data);
const priorities_data = cp
const mainstream_runtimes_data = cp
.execSync(
`nix eval --json ${config.flake_path}#pistonRuntimePriorities`
`nix eval --json ${config.flake_path}#pistonMainstreamRuntimes`
)
.toString();
const priorities = JSON.parse(priorities_data).filter(runtime =>
const mainstream_runtimes = JSON.parse(mainstream_runtimes_data).filter(runtime =>
runtime_names_unordered.includes(runtime)
);
const runtime_names = [
...priorities,
...mainstream_runtimes,
...runtime_names_unordered.filter(
runtime => !priorities.includes(runtime)
runtime => !mainstream_runtimes.includes(runtime)
),
];

View File

@ -65,17 +65,12 @@
"bash-only" = runtimeList ["bash"];
"none" = { };
};
pistonRuntimePriorities = [
pistonMainstreamRuntimes = [
"mono-csharp"
"dotnet-sdk-csharp"
"python3"
"python2"
"node-javascript"
"node-typescript"
"deno-javascript"
"deno-typescript"
"mono-basic"
"dotnet-sdk-visual-basic"
];
legacyPackages."${system}" = rec {