Unverified Commit 2ef1ede9 authored by Daniel Nagy's avatar Daniel Nagy
Browse files

kubernetes-helm: make completion generation platform-dependant

parent e77a3211
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildGoModule,
  fetchFromGitHub,
  installShellFiles,
@@ -57,7 +58,7 @@ buildGoModule rec {
  '';

  nativeBuildInputs = [ installShellFiles ];
  postInstall = ''
  postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
    $out/bin/helm completion bash > helm.bash
    $out/bin/helm completion zsh > helm.zsh
    $out/bin/helm completion fish > helm.fish