kubernetes-helm: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:35:00 -05:00
parent 378de230c1
commit 8e2dd1164f
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
{ stdenv, buildGoModule, fetchFromGitHub, installShellFiles, Security }:
buildGoModule rec {
pname = "helm";
@ -16,6 +16,9 @@ buildGoModule rec {
buildFlagsArray = [ "-ldflags=-w -s -X helm.sh/helm/v3/internal/version.version=v${version}" ];
nativeBuildInputs = [ installShellFiles ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
postInstall = ''
$out/bin/helm completion bash > helm.bash
$out/bin/helm completion zsh > helm.zsh

View File

@ -20318,7 +20318,9 @@ in
linkerd = callPackage ../applications/networking/cluster/linkerd { };
kubernetes-helm = callPackage ../applications/networking/cluster/helm { };
kubernetes-helm = callPackage ../applications/networking/cluster/helm {
inherit (darwin.apple_sdk.frameworks) Security;
};
kubetail = callPackage ../applications/networking/cluster/kubetail { } ;