2020-03-27 00:33:21 -07:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2018-10-08 22:28:50 -07:00
|
|
|
|
2019-11-13 08:07:05 -08:00
|
|
|
buildGoModule rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "helm";
|
2020-10-26 10:23:53 -07:00
|
|
|
version = "3.4.0";
|
2016-12-12 15:43:24 -08:00
|
|
|
|
2018-10-08 22:28:50 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "helm";
|
|
|
|
repo = "helm";
|
|
|
|
rev = "v${version}";
|
2020-10-26 10:23:53 -07:00
|
|
|
sha256 = "1z5s8c6yrc1v2y54lx2mbyz31schzpaz2r304m0wwxhn06p43sl0";
|
2016-12-12 15:43:24 -08:00
|
|
|
};
|
2020-10-26 10:23:53 -07:00
|
|
|
vendorSha256 = "0vcvmbvfmj0bi5msjhy9qcqabiscjpfqpnb1lxy49mshs902qc14";
|
2016-12-12 15:43:24 -08:00
|
|
|
|
2020-08-03 17:26:27 -07:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-11-13 08:07:05 -08:00
|
|
|
subPackages = [ "cmd/helm" ];
|
2020-01-29 16:35:10 -08:00
|
|
|
buildFlagsArray = [ "-ldflags=-w -s -X helm.sh/helm/v3/internal/version.version=v${version}" ];
|
2016-12-12 15:43:24 -08:00
|
|
|
|
2019-12-13 13:37:30 -08:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
|
|
|
$out/bin/helm completion bash > helm.bash
|
|
|
|
$out/bin/helm completion zsh > helm.zsh
|
|
|
|
installShellCompletion helm.{bash,zsh}
|
|
|
|
'';
|
|
|
|
|
2016-12-12 15:43:24 -08:00
|
|
|
meta = with stdenv.lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/kubernetes/helm";
|
2016-12-12 15:43:24 -08:00
|
|
|
description = "A package manager for kubernetes";
|
|
|
|
license = licenses.asl20;
|
2020-09-06 17:24:12 -07:00
|
|
|
maintainers = with maintainers; [ rlupton20 edude03 saschagrunert Frostman Chili-Man ];
|
2016-12-12 15:43:24 -08:00
|
|
|
};
|
2020-05-18 08:28:45 -07:00
|
|
|
}
|