depot/third_party/nixpkgs/pkgs/development/tools/continuous-integration/gitea-actions-runner/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

41 lines
977 B
Nix

{ lib
, fetchFromGitea
, buildGoModule
, testers
, gitea-actions-runner
}:
buildGoModule rec {
pname = "gitea-actions-runner";
version = "0.2.5";
src = fetchFromGitea {
domain = "gitea.com";
owner = "gitea";
repo = "act_runner";
rev = "v${version}";
hash = "sha256-HWJrgZJfI5fOeZvQkmpd6wciJWh1JOmZMlyGHSbgHpc=";
};
vendorHash = "sha256-Z61kTbKHSUpt2F6jVUUK4KwMJ0ILT1FI4/62AkNQuZI=";
ldflags = [
"-s"
"-w"
"-X gitea.com/gitea/act_runner/internal/pkg/ver.version=v${version}"
];
passthru.tests.version = testers.testVersion {
package = gitea-actions-runner;
version = "v${version}";
};
meta = with lib; {
mainProgram = "act_runner";
maintainers = with maintainers; [ techknowlogick ];
license = licenses.mit;
changelog = "https://gitea.com/gitea/act_runner/releases/tag/v${version}";
homepage = "https://gitea.com/gitea/act_runner";
description = "A runner for Gitea based on act";
};
}