Rename runtime priorities to mainstream runtimes
This commit is contained in:
parent
26203f6049
commit
a664cd4d49
|
@ -45,18 +45,18 @@ expressWs(app);
|
||||||
.toString();
|
.toString();
|
||||||
const runtime_names_unordered = JSON.parse(runtimes_data);
|
const runtime_names_unordered = JSON.parse(runtimes_data);
|
||||||
|
|
||||||
const priorities_data = cp
|
const mainstream_runtimes_data = cp
|
||||||
.execSync(
|
.execSync(
|
||||||
`nix eval --json ${config.flake_path}#pistonRuntimePriorities`
|
`nix eval --json ${config.flake_path}#pistonMainstreamRuntimes`
|
||||||
)
|
)
|
||||||
.toString();
|
.toString();
|
||||||
const priorities = JSON.parse(priorities_data).filter(runtime =>
|
const mainstream_runtimes = JSON.parse(mainstream_runtimes_data).filter(runtime =>
|
||||||
runtime_names_unordered.includes(runtime)
|
runtime_names_unordered.includes(runtime)
|
||||||
);
|
);
|
||||||
const runtime_names = [
|
const runtime_names = [
|
||||||
...priorities,
|
...mainstream_runtimes,
|
||||||
...runtime_names_unordered.filter(
|
...runtime_names_unordered.filter(
|
||||||
runtime => !priorities.includes(runtime)
|
runtime => !mainstream_runtimes.includes(runtime)
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -65,17 +65,12 @@
|
||||||
"bash-only" = runtimeList ["bash"];
|
"bash-only" = runtimeList ["bash"];
|
||||||
"none" = { };
|
"none" = { };
|
||||||
};
|
};
|
||||||
pistonRuntimePriorities = [
|
pistonMainstreamRuntimes = [
|
||||||
"mono-csharp"
|
"mono-csharp"
|
||||||
"dotnet-sdk-csharp"
|
|
||||||
"python3"
|
"python3"
|
||||||
"python2"
|
|
||||||
"node-javascript"
|
"node-javascript"
|
||||||
"node-typescript"
|
"node-typescript"
|
||||||
"deno-javascript"
|
|
||||||
"deno-typescript"
|
|
||||||
"mono-basic"
|
"mono-basic"
|
||||||
"dotnet-sdk-visual-basic"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
legacyPackages."${system}" = rec {
|
legacyPackages."${system}" = rec {
|
||||||
|
|
Loading…
Reference in New Issue