Loading pkgs/by-name/fo/forgejo-runner/package.nix +18 −8 Original line number Diff line number Diff line Loading @@ -6,6 +6,8 @@ nixosTests, versionCheckHook, nix-update-script, gitMinimal, makeWrapper, }: let Loading @@ -17,7 +19,7 @@ let # The following tests were introduced in 9.x with the inclusion of act # the pkgs/by-name/ac/act/package.nix just sets doCheck = false; # Requires running docker install # Requires running Docker daemon "TestDocker" "TestJobExecutor" "TestRunner" Loading @@ -29,7 +31,7 @@ let # Reaches out to different websites "TestFindGitRemoteURL" "TestGitFindRef" "TestGitCloneExecutor" "TestClone" "TestCloneIfRequired" "TestActionCache" "TestRunContext_GetGitHubContext" Loading @@ -46,17 +48,19 @@ let in buildGoModule rec { pname = "forgejo-runner"; version = "11.3.1"; version = "12.2.0"; src = fetchFromGitea { domain = "code.forgejo.org"; owner = "forgejo"; repo = "runner"; rev = "v${version}"; hash = "sha256-jvHnTCkRvYaejeCiPpr18ldEmxcAkrEIaOLVVBY11eg="; hash = "sha256-UzBRIa+mhynJDYHzssApMPyLeHdFVSAZ6SZtPbtJpB4="; }; vendorHash = "sha256-7Ybh5qzkqT3CvGtRXiPkc5ShTYGlyvckTxg4EFagM/c="; vendorHash = "sha256-ReGxoPvW4G6DbFfR2OeeT3tupZkpLpX80zK824oeyVg="; nativeBuildInputs = [ makeWrapper ]; # See upstream Makefile # https://code.forgejo.org/forgejo/runner/src/branch/main/Makefile Loading @@ -68,7 +72,7 @@ buildGoModule rec { ldflags = [ "-s" "-w" "-X code.forgejo.org/forgejo/runner/v11/internal/pkg/ver.version=${src.rev}" "-X code.forgejo.org/forgejo/runner/v12/internal/pkg/ver.version=${src.rev}" ]; checkFlags = [ Loading @@ -76,13 +80,19 @@ buildGoModule rec { ]; postInstall = '' # fix up go-specific executable naming derived from package name, upstream # Fix up go-specific executable naming derived from package name, upstream # also calls it `forgejo-runner` mv $out/bin/runner $out/bin/forgejo-runner # provide old binary name for compatibility # Provide backward compatbility since v12 removed bundled git wrapProgram $out/bin/forgejo-runner --suffix PATH : ${lib.makeBinPath [ gitMinimal ]} # Provide old binary name for compatibility ln -s $out/bin/forgejo-runner $out/bin/act_runner ''; nativeCheckInputs = [ gitMinimal ]; doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook ]; versionCheckProgram = "${placeholder "out"}/bin/${meta.mainProgram}"; Loading Loading
pkgs/by-name/fo/forgejo-runner/package.nix +18 −8 Original line number Diff line number Diff line Loading @@ -6,6 +6,8 @@ nixosTests, versionCheckHook, nix-update-script, gitMinimal, makeWrapper, }: let Loading @@ -17,7 +19,7 @@ let # The following tests were introduced in 9.x with the inclusion of act # the pkgs/by-name/ac/act/package.nix just sets doCheck = false; # Requires running docker install # Requires running Docker daemon "TestDocker" "TestJobExecutor" "TestRunner" Loading @@ -29,7 +31,7 @@ let # Reaches out to different websites "TestFindGitRemoteURL" "TestGitFindRef" "TestGitCloneExecutor" "TestClone" "TestCloneIfRequired" "TestActionCache" "TestRunContext_GetGitHubContext" Loading @@ -46,17 +48,19 @@ let in buildGoModule rec { pname = "forgejo-runner"; version = "11.3.1"; version = "12.2.0"; src = fetchFromGitea { domain = "code.forgejo.org"; owner = "forgejo"; repo = "runner"; rev = "v${version}"; hash = "sha256-jvHnTCkRvYaejeCiPpr18ldEmxcAkrEIaOLVVBY11eg="; hash = "sha256-UzBRIa+mhynJDYHzssApMPyLeHdFVSAZ6SZtPbtJpB4="; }; vendorHash = "sha256-7Ybh5qzkqT3CvGtRXiPkc5ShTYGlyvckTxg4EFagM/c="; vendorHash = "sha256-ReGxoPvW4G6DbFfR2OeeT3tupZkpLpX80zK824oeyVg="; nativeBuildInputs = [ makeWrapper ]; # See upstream Makefile # https://code.forgejo.org/forgejo/runner/src/branch/main/Makefile Loading @@ -68,7 +72,7 @@ buildGoModule rec { ldflags = [ "-s" "-w" "-X code.forgejo.org/forgejo/runner/v11/internal/pkg/ver.version=${src.rev}" "-X code.forgejo.org/forgejo/runner/v12/internal/pkg/ver.version=${src.rev}" ]; checkFlags = [ Loading @@ -76,13 +80,19 @@ buildGoModule rec { ]; postInstall = '' # fix up go-specific executable naming derived from package name, upstream # Fix up go-specific executable naming derived from package name, upstream # also calls it `forgejo-runner` mv $out/bin/runner $out/bin/forgejo-runner # provide old binary name for compatibility # Provide backward compatbility since v12 removed bundled git wrapProgram $out/bin/forgejo-runner --suffix PATH : ${lib.makeBinPath [ gitMinimal ]} # Provide old binary name for compatibility ln -s $out/bin/forgejo-runner $out/bin/act_runner ''; nativeCheckInputs = [ gitMinimal ]; doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook ]; versionCheckProgram = "${placeholder "out"}/bin/${meta.mainProgram}"; Loading