mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-25 21:44:49 +00:00
github-runner: drop Node.js 16-related code
As Node.js 16 is dropped from nixpkgs, we don't need support code for Node.js 16 anymore.
This commit is contained in:
parent
ad11438d09
commit
a2976db919
@ -15,12 +15,11 @@
|
||||
, runtimeShell
|
||||
# List of Node.js runtimes the package should support
|
||||
, nodeRuntimes ? [ "node20" ]
|
||||
, nodejs_16
|
||||
, nodejs_20
|
||||
}:
|
||||
|
||||
# Node.js runtimes supported by upstream
|
||||
assert builtins.all (x: builtins.elem x [ "node16" "node20" ]) nodeRuntimes;
|
||||
assert builtins.all (x: builtins.elem x [ "node20" ]) nodeRuntimes;
|
||||
|
||||
buildDotnetModule rec {
|
||||
pname = "github-runner";
|
||||
@ -210,8 +209,6 @@ buildDotnetModule rec {
|
||||
|
||||
preCheck = ''
|
||||
mkdir -p _layout/externals
|
||||
'' + lib.optionalString (lib.elem "node16" nodeRuntimes) ''
|
||||
ln -s ${nodejs_16} _layout/externals/node16
|
||||
'' + lib.optionalString (lib.elem "node20" nodeRuntimes) ''
|
||||
ln -s ${nodejs_20} _layout/externals/node20
|
||||
'';
|
||||
@ -250,8 +247,6 @@ buildDotnetModule rec {
|
||||
# externals/node$version. As opposed to the official releases, we don't
|
||||
# link the Alpine Node flavors.
|
||||
mkdir -p $out/lib/externals
|
||||
'' + lib.optionalString (lib.elem "node16" nodeRuntimes) ''
|
||||
ln -s ${nodejs_16} $out/lib/externals/node16
|
||||
'' + lib.optionalString (lib.elem "node20" nodeRuntimes) ''
|
||||
ln -s ${nodejs_20} $out/lib/externals/node20
|
||||
'' + ''
|
||||
|
Loading…
Reference in New Issue
Block a user