bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
41 lines
976 B
Nix
41 lines
976 B
Nix
{ lib
|
|
, fetchFromGitea
|
|
, buildGoModule
|
|
, testers
|
|
, gitea-actions-runner
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "gitea-actions-runner";
|
|
version = "0.2.10";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "gitea.com";
|
|
owner = "gitea";
|
|
repo = "act_runner";
|
|
rev = "v${version}";
|
|
hash = "sha256-YRWFBMHw9Fcmzkmglh2I1kXJkAAivqvCBcenLTjE/bI=";
|
|
};
|
|
|
|
vendorHash = "sha256-8sdSQhg9DnRLgghDZzWrUMM4vjinhCgu3dTKU7MBVQU=";
|
|
|
|
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 = "Runner for Gitea based on act";
|
|
};
|
|
}
|