depot/third_party/nixpkgs/pkgs/development/tools/continuous-integration/woodpecker-plugin-git/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

42 lines
1,005 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, testers
, woodpecker-plugin-git
}:
buildGoModule rec {
pname = "woodpecker-plugin-git";
version = "2.5.0";
src = fetchFromGitHub {
owner = "woodpecker-ci";
repo = "plugin-git";
rev = "refs/tags/${version}";
hash = "sha256-vQcHEsOJFMbrt5KpoHB59g5gIxwXQuJpudhu2qbgCY8=";
};
vendorHash = "sha256-nPeF6Z+d69o1JwCUlzVREx8DyIqokHIfTRC1/S5XG6A=";
CGO_ENABLED = "0";
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
];
# Checks fail because they require network access.
doCheck = false;
passthru.tests.version = testers.testVersion { package = woodpecker-plugin-git; };
meta = with lib; {
description = "Woodpecker plugin for cloning Git repositories";
homepage = "https://woodpecker-ci.org/";
changelog = "https://github.com/woodpecker-ci/plugin-git/releases/tag/${version}";
license = licenses.asl20;
mainProgram = "plugin-git";
maintainers = with maintainers; [ ambroisie ];
};
}