Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
999 B
Nix
44 lines
999 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
testers,
|
|
woodpecker-plugin-git,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "woodpecker-plugin-git";
|
|
version = "2.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "woodpecker-ci";
|
|
repo = "plugin-git";
|
|
tag = version;
|
|
hash = "sha256-5P3YCMOrF7X+2ExI4Y/T6PJFyGqxI8gsKIAPJjM0zpk=";
|
|
};
|
|
|
|
vendorHash = "sha256-ZBGDFgS8lYNCBrQRq3/JX3JRaDEJPaRbr9P4grlbG7Q=";
|
|
|
|
env.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 = {
|
|
description = "Woodpecker plugin for cloning Git repositories";
|
|
homepage = "https://woodpecker-ci.org/";
|
|
changelog = "https://github.com/woodpecker-ci/plugin-git/releases/tag/${version}";
|
|
license = lib.licenses.asl20;
|
|
mainProgram = "plugin-git";
|
|
maintainers = with lib.maintainers; [ ambroisie ];
|
|
};
|
|
}
|