Loading pkgs/development/tools/continuous-integration/woodpecker/cli.nix +18 −2 Original line number Diff line number Diff line { buildGoModule, callPackage }: { buildGoModule, callPackage, installShellFiles, lib, stdenv, }: let common = callPackage ./common.nix { }; in Loading @@ -8,13 +14,23 @@ buildGoModule { version src ldflags postInstall 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"; Loading pkgs/development/tools/continuous-integration/woodpecker/common.nix +2 −2 Original line number Diff line number Diff line { lib, fetchzip }: let version = "3.9.0"; srcHash = "sha256-Ymg6nJr83jt2EAv/p1B1wmZv3jvpx/3xRVRii3S1cNU="; version = "3.10.0"; srcHash = "sha256-Z9EGm14q9DySZ0lgw/wwam3NjvicltWBkVJ3cwi/eds="; # The tarball contains vendored dependencies vendorHash = null; in Loading Loading
pkgs/development/tools/continuous-integration/woodpecker/cli.nix +18 −2 Original line number Diff line number Diff line { buildGoModule, callPackage }: { buildGoModule, callPackage, installShellFiles, lib, stdenv, }: let common = callPackage ./common.nix { }; in Loading @@ -8,13 +14,23 @@ buildGoModule { version src ldflags postInstall 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"; Loading
pkgs/development/tools/continuous-integration/woodpecker/common.nix +2 −2 Original line number Diff line number Diff line { lib, fetchzip }: let version = "3.9.0"; srcHash = "sha256-Ymg6nJr83jt2EAv/p1B1wmZv3jvpx/3xRVRii3S1cNU="; version = "3.10.0"; srcHash = "sha256-Z9EGm14q9DySZ0lgw/wwam3NjvicltWBkVJ3cwi/eds="; # The tarball contains vendored dependencies vendorHash = null; in Loading