diff --git a/pkgs/by-name/gi/github-runner/package.nix b/pkgs/by-name/gi/github-runner/package.nix index 96826704e00cc..c034032a1ae0f 100644 --- a/pkgs/by-name/gi/github-runner/package.nix +++ b/pkgs/by-name/gi/github-runner/package.nix @@ -23,14 +23,14 @@ # Node.js runtimes supported by upstream assert builtins.all (x: builtins.elem x [ "node20" ]) nodeRuntimes; -buildDotnetModule rec { +buildDotnetModule (finalAttrs: { pname = "github-runner"; version = "2.321.0"; src = fetchFromGitHub { owner = "actions"; repo = "runner"; - rev = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-KZ072v5kYlD78RGQl13Aj05DGzj2+r2akzyZ1aJn93A="; leaveDotGit = true; postFetch = '' @@ -52,7 +52,7 @@ buildDotnetModule rec { git config user.name "root" git add . git commit -m "Initial commit" - git checkout -b v${version} + git checkout -b v${finalAttrs.version} ) mkdir -p $TMPDIR/bin cat > $TMPDIR/bin/git </dev/null version=$($out/bin/Runner.Listener --version) - if [[ "$version" != "${version}" ]]; then + if [[ "$version" != "${finalAttrs.version}" ]]; then printf 'Unexpected version %s' "$version" exit 1 fi @@ -347,4 +347,4 @@ buildDotnetModule rec { ]; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; }; -} +})