mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
18ed405de1
Diff: https://gitea.com/gitea/act_runner/compare/v0.2.5...v0.2.6 Changelog: https://gitea.com/gitea/act_runner/releases/tag/v0.2.6
42 lines
977 B
Nix
42 lines
977 B
Nix
{ lib
|
|
, fetchFromGitea
|
|
, buildGoModule
|
|
, testers
|
|
, gitea-actions-runner
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "gitea-actions-runner";
|
|
version = "0.2.6";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "gitea.com";
|
|
owner = "gitea";
|
|
repo = "act_runner";
|
|
rev = "v${version}";
|
|
hash = "sha256-GE9yqp5zWJ4lL0L/w3oSvU72AiHBNb+yh2qBPKPe9X0=";
|
|
};
|
|
|
|
vendorHash = "sha256-NoaLq5pCwTuPd9ne5LYcvJsgUXAqcfkcW3Ck2K350JE=";
|
|
|
|
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";
|
|
};
|
|
}
|