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
40 lines
854 B
Nix
40 lines
854 B
Nix
{
|
|
buildGoModule,
|
|
callPackage,
|
|
installShellFiles,
|
|
lib,
|
|
stdenv,
|
|
}:
|
|
let
|
|
common = callPackage ./common.nix { };
|
|
in
|
|
buildGoModule {
|
|
pname = "woodpecker-cli";
|
|
inherit (common)
|
|
version
|
|
src
|
|
ldflags
|
|
vendorHash
|
|
;
|
|
|
|
subPackages = "cmd/cli";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
env.CGO_ENABLED = 0;
|
|
postInstall = ''
|
|
${common.postInstall}
|
|
''
|
|
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
installShellCompletion --cmd woodpecker-cli \
|
|
--bash <($out/bin/woodpecker-cli completion bash) \
|
|
--fish <($out/bin/woodpecker-cli completion fish ) \
|
|
--zsh <($out/bin/woodpecker-cli completion zsh)
|
|
'';
|
|
|
|
meta = common.meta // {
|
|
description = "Command line client for the Woodpecker Continuous Integration server";
|
|
mainProgram = "woodpecker-cli";
|
|
};
|
|
}
|