nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 854 B view raw
1{ 2 buildGoModule, 3 callPackage, 4 installShellFiles, 5 lib, 6 stdenv, 7}: 8let 9 common = callPackage ./common.nix { }; 10in 11buildGoModule { 12 pname = "woodpecker-cli"; 13 inherit (common) 14 version 15 src 16 ldflags 17 vendorHash 18 ; 19 20 subPackages = "cmd/cli"; 21 22 nativeBuildInputs = [ installShellFiles ]; 23 24 env.CGO_ENABLED = 0; 25 postInstall = '' 26 ${common.postInstall} 27 '' 28 + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' 29 installShellCompletion --cmd woodpecker-cli \ 30 --bash <($out/bin/woodpecker-cli completion bash) \ 31 --fish <($out/bin/woodpecker-cli completion fish ) \ 32 --zsh <($out/bin/woodpecker-cli completion zsh) 33 ''; 34 35 meta = common.meta // { 36 description = "Command line client for the Woodpecker Continuous Integration server"; 37 mainProgram = "woodpecker-cli"; 38 }; 39}