2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, testers
|
|
|
|
, woodpecker-plugin-git
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "woodpecker-plugin-git";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "2.5.0";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "woodpecker-ci";
|
|
|
|
repo = "plugin-git";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-vQcHEsOJFMbrt5KpoHB59g5gIxwXQuJpudhu2qbgCY8=";
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
vendorHash = "sha256-nPeF6Z+d69o1JwCUlzVREx8DyIqokHIfTRC1/S5XG6A=";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|