diff options
author | Vincent Haupert <mail@vincent-haupert.de> | 2021-12-29 17:45:58 +0100 |
---|---|---|
committer | Vincent Haupert <mail@vincent-haupert.de> | 2021-12-29 17:45:58 +0100 |
commit | 01ad24db55f8c9735a2e1594ed8ebe25fbb4d1c2 (patch) | |
tree | 543c1aa551acbca45a6d53502a6a96d732151090 /pkgs/development/tools/continuous-integration/github-runner | |
parent | 21466e63cc60b229584256eec495171825b0604d (diff) | |
download | nixpkgs-01ad24db55f8c9735a2e1594ed8ebe25fbb4d1c2.tar nixpkgs-01ad24db55f8c9735a2e1594ed8ebe25fbb4d1c2.tar.gz nixpkgs-01ad24db55f8c9735a2e1594ed8ebe25fbb4d1c2.tar.bz2 nixpkgs-01ad24db55f8c9735a2e1594ed8ebe25fbb4d1c2.tar.lz nixpkgs-01ad24db55f8c9735a2e1594ed8ebe25fbb4d1c2.tar.xz nixpkgs-01ad24db55f8c9735a2e1594ed8ebe25fbb4d1c2.tar.zst nixpkgs-01ad24db55f8c9735a2e1594ed8ebe25fbb4d1c2.zip |
github-runner: install bundled Node.js scripts
Fixes a bug which caused workflow steps to fail if they called the `hashFiles` expression function; we didn't install it. This commit makes sure the Nodejs script is in the expected location. Same applies for the scripts in the `checkScripts` directory which we missed to install so far.
Diffstat (limited to 'pkgs/development/tools/continuous-integration/github-runner')
-rw-r--r-- | pkgs/development/tools/continuous-integration/github-runner/default.nix | 5 |
1 files changed, 5 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 17a0cff31fe..e784e3fe330 100644 --- a/pkgs/development/tools/continuous-integration/github-runner/default.nix +++ b/pkgs/development/tools/continuous-integration/github-runner/default.nix @@ -242,6 +242,11 @@ stdenv.mkDerivation rec { ln -s ${nodejs-12_x} $out/externals/node12 ln -s ${nodejs-16_x} $out/externals/node16 + # Install Nodejs scripts called from workflows + install -D src/Misc/layoutbin/hashFiles/index.js $out/lib/hashFiles/index.js + mkdir -p $out/lib/checkScripts + install src/Misc/layoutbin/checkScripts/* $out/lib/checkScripts/ + runHook postInstall ''; |