biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / continuous-integration / woodpecker-plugin-git / default.nix
blobc058002376373f473d63f4631013047a178b8a55
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , testers
5 , woodpecker-plugin-git
6 }:
8 buildGoModule rec {
9   pname = "woodpecker-plugin-git";
10   version = "2.5.0";
12   src = fetchFromGitHub {
13     owner = "woodpecker-ci";
14     repo = "plugin-git";
15     rev = "refs/tags/${version}";
16     hash = "sha256-vQcHEsOJFMbrt5KpoHB59g5gIxwXQuJpudhu2qbgCY8=";
17   };
19   vendorHash = "sha256-nPeF6Z+d69o1JwCUlzVREx8DyIqokHIfTRC1/S5XG6A=";
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   };