Rename runtime priorities to mainstream runtimes
This commit is contained in:
parent
26203f6049
commit
a664cd4d49
|
@ -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)
|
||||
),
|
||||
];
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue