nixpkgs/pkgs/by-name/gi/gitea-actions-runner/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
989 B
Nix
Raw Normal View History

2024-09-24 19:17:48 +00:00
{
lib,
fetchFromGitea,
2024-09-24 19:48:47 +00:00
buildGo123Module,
2024-09-24 19:17:48 +00:00
testers,
gitea-actions-runner,
}:
2023-02-09 04:29:55 +00:00
2024-09-24 19:48:47 +00:00
buildGo123Module rec {
2023-02-09 04:29:55 +00:00
pname = "gitea-actions-runner";
2024-09-24 19:48:47 +00:00
version = "0.2.11";
2023-02-09 04:29:55 +00:00
src = fetchFromGitea {
domain = "gitea.com";
owner = "gitea";
repo = "act_runner";
rev = "v${version}";
2024-09-24 19:48:47 +00:00
hash = "sha256-PmDa8XIe1uZ4SSrs9zh5HBmFaOuj+uuLm7jJ4O5V1dI=";
2023-02-09 04:29:55 +00:00
};
2024-09-24 19:48:47 +00:00
vendorHash = "sha256-lYJFySGqkhT89vHDp1FcTiiC7DG4ziQ1DaBHLh/kXQc=";
ldflags = [
"-s"
"-w"
"-X gitea.com/gitea/act_runner/internal/pkg/ver.version=v${version}"
];
2023-02-09 04:29:55 +00:00
passthru.tests.version = testers.testVersion {
package = gitea-actions-runner;
version = "v${version}";
};
2023-02-09 04:29:55 +00:00
meta = with lib; {
mainProgram = "act_runner";
maintainers = with maintainers; [ techknowlogick ];
license = licenses.mit;
changelog = "https://gitea.com/gitea/act_runner/releases/tag/v${version}";
2023-02-09 04:29:55 +00:00
homepage = "https://gitea.com/gitea/act_runner";
description = "Runner for Gitea based on act";
};
}