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.
main
Vincent Haupert 2 years ago
parent 21466e63cc
commit 01ad24db55
  1. 5
      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
'';

Loading…
Cancel
Save