Merge pull request #286063 from yaxitech/github-runner-node-runtimes-286059

nixos/github-runners: only override pkg if it has a `nodeRuntimes` arg
This commit is contained in:
Aaron Andersen
2024-02-08 07:20:13 -08:00
committed by GitHub
@@ -22,7 +22,8 @@ with lib;
let
workDir = if cfg.workDir == null then runtimeDir else cfg.workDir;
package = cfg.package.override { inherit (cfg) nodeRuntimes; };
# Support old github-runner versions which don't have the `nodeRuntimes` arg yet.
package = cfg.package.override (old: optionalAttrs (hasAttr "nodeRuntimes" old) { inherit (cfg) nodeRuntimes; });
in
{
description = "GitHub Actions runner";