nixos/uptime-kuma: Add additional lockdown settings to systemd unit (#361452)
[NixPkgs.git] / pkgs / by-name / wo / woodpecker-plugin-git / package.nix
blobc8d28fa69dd27ccdc27287f8acb633d3b4143e66
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , testers
5 , woodpecker-plugin-git
6 }:
8 buildGoModule rec {
9   pname = "woodpecker-plugin-git";
10   version = "2.6.0";
12   src = fetchFromGitHub {
13     owner = "woodpecker-ci";
14     repo = "plugin-git";
15     rev = "refs/tags/${version}";
16     hash = "sha256-ffP4CmvoxmXdwrWWOG2HIoz1pgmxTUdG5rPsgJ1+3do=";
17   };
19   vendorHash = "sha256-wB1Uv7ZSIEHzR8z96hwXScoGA31uhoql/wwAH3Olj2E=";
21   CGO_ENABLED = "0";
23   ldflags = [
24     "-s"
25     "-w"
26     "-X main.version=${version}"
27   ];
29   # Checks fail because they require network access.
30   doCheck = false;
32   passthru.tests.version = testers.testVersion { package = woodpecker-plugin-git; };
34   meta = with lib; {
35     description = "Woodpecker plugin for cloning Git repositories";
36     homepage = "https://woodpecker-ci.org/";
37     changelog = "https://github.com/woodpecker-ci/plugin-git/releases/tag/${version}";
38     license = licenses.asl20;
39     mainProgram = "plugin-git";
40     maintainers = with maintainers; [ ambroisie ];
41   };