2023-04-29 16:46:19 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitea
|
|
|
|
, buildGoModule
|
2023-08-04 22:07:22 +00:00
|
|
|
, testers
|
|
|
|
, gitea-actions-runner
|
2023-04-29 16:46:19 +00:00
|
|
|
}:
|
2023-03-08 16:32:21 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gitea-actions-runner";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.2.10";
|
2023-03-08 16:32:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "gitea.com";
|
|
|
|
owner = "gitea";
|
|
|
|
repo = "act_runner";
|
2023-04-29 16:46:19 +00:00
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-YRWFBMHw9Fcmzkmglh2I1kXJkAAivqvCBcenLTjE/bI=";
|
2023-03-08 16:32:21 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
vendorHash = "sha256-8sdSQhg9DnRLgghDZzWrUMM4vjinhCgu3dTKU7MBVQU=";
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
2023-08-04 22:07:22 +00:00
|
|
|
"-X gitea.com/gitea/act_runner/internal/pkg/ver.version=v${version}"
|
2023-03-24 00:07:29 +00:00
|
|
|
];
|
2023-03-08 16:32:21 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = gitea-actions-runner;
|
|
|
|
version = "v${version}";
|
|
|
|
};
|
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
meta = with lib; {
|
|
|
|
mainProgram = "act_runner";
|
|
|
|
maintainers = with maintainers; [ techknowlogick ];
|
|
|
|
license = licenses.mit;
|
2023-04-29 16:46:19 +00:00
|
|
|
changelog = "https://gitea.com/gitea/act_runner/releases/tag/v${version}";
|
2023-03-08 16:32:21 +00:00
|
|
|
homepage = "https://gitea.com/gitea/act_runner";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Runner for Gitea based on act";
|
2023-03-08 16:32:21 +00:00
|
|
|
};
|
|
|
|
}
|