summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Haupert <vincent@yaxi.tech>2023-10-24 17:54:49 +0200
committerVincent Haupert <vincent@yaxi.tech>2023-10-24 17:57:25 +0200
commit2b44899a341999ebdb09481b295455e0d4771b43 (patch)
treec01c0428df2120d3dafbd8de7e6b749e88f25c9f
parent05bd5e12bd62067c3f63aa4209f7ad9fc8f4254f (diff)
downloadnixpkgs-2b44899a341999ebdb09481b295455e0d4771b43.tar
nixpkgs-2b44899a341999ebdb09481b295455e0d4771b43.tar.gz
nixpkgs-2b44899a341999ebdb09481b295455e0d4771b43.tar.bz2
nixpkgs-2b44899a341999ebdb09481b295455e0d4771b43.tar.lz
nixpkgs-2b44899a341999ebdb09481b295455e0d4771b43.tar.xz
nixpkgs-2b44899a341999ebdb09481b295455e0d4771b43.tar.zst
nixpkgs-2b44899a341999ebdb09481b295455e0d4771b43.zip
github-runner: align internal Node version with `nodeRuntimes`
-rw-r--r--pkgs/development/tools/continuous-integration/github-runner/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/tools/continuous-integration/github-runner/default.nix b/pkgs/development/tools/continuous-integration/github-runner/default.nix
index 9fe3160917c..57a78dbb310 100644
--- a/pkgs/development/tools/continuous-integration/github-runner/default.nix
+++ b/pkgs/development/tools/continuous-integration/github-runner/default.nix
@@ -81,6 +81,14 @@ buildDotnetModule rec {
       url = "https://github.com/actions/runner/commit/5ff0ce1.patch";
       hash = "sha256-2Vg3cKZK3cE/OcPDZkdN2Ro2WgvduYTTwvNGxwCfXas=";
     })
+  ] ++ lib.optionals (nodeRuntimes == [ "node20" ]) [
+    # If the package is built without Node 16, make Node 20 the default internal version
+    # https://github.com/actions/runner/pull/2844
+    (fetchpatch {
+      name = "internal-node-20.patch";
+      url = "https://github.com/actions/runner/commit/acdc6ed.patch";
+      hash = "sha256-3/6yhhJPr9OMWBFc5/NU/DRtn76aTYvjsjQo2u9ZqnU=";
+    })
   ];
 
   postPatch = ''