diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 8a3584b0b8d0..282588569170 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -384,6 +384,7 @@ retrry = "Tadas BarzdÅžius "; rick68 = "Wei-Ming Yang "; rickynils = "Rickard Nilsson "; + rlupton20 = "Richard Lupton "; rnhmjoj = "Michele Guerini Rocco "; rob = "Rob Vermaas "; robberer = "Longrin Wischnewski "; diff --git a/pkgs/applications/networking/cluster/helm/default.nix b/pkgs/applications/networking/cluster/helm/default.nix new file mode 100644 index 000000000000..58ac31ce49f5 --- /dev/null +++ b/pkgs/applications/networking/cluster/helm/default.nix @@ -0,0 +1,45 @@ +{ stdenv, fetchurl, kubernetes }: +let + arch = if stdenv.isLinux + then "linux-amd64" + else "darwin-amd64"; + checksum = if stdenv.isLinux + then "dad3791fb07e6cf34f4cf611728cb8ae109a75234498a888529a68ac6923f200" + else "d27bd7e40e12c0a5f08782a8a883166008565b28e0b82126d2089300ff3f8465"; +in +stdenv.mkDerivation rec { + pname = "helm"; + version = "2.0.2"; + name = "${pname}-${version}"; + + src = fetchurl { + url = "https://kubernetes-helm.storage.googleapis.com/helm-v${version}-${arch}.tar.gz"; + sha256 = "${checksum}"; + }; + + preferLocalBuild = true; + + buildInputs = [ ]; + + propagatedBuildInputs = [ kubernetes ]; + + phases = [ "buildPhase" "installPhase" ]; + + buildPhase = '' + mkdir -p $out/bin + ''; + + installPhase = '' + tar -xvzf $src + cp ${arch}/helm $out/bin/${pname} + chmod +x $out/bin/${pname} + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/kubernetes/helm; + description = "A package manager for kubernetes"; + license = licenses.asl20; + maintainers = [ maintainers.rlupton20 ]; + platforms = platforms.linux ++ platforms.darwin; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0b94668c5542..bb6c118d1f9b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13360,6 +13360,8 @@ in hello = callPackage ../applications/misc/hello { }; + kubernetes-helm = callPackage ../applications/networking/cluster/helm { }; + helmholtz = callPackage ../applications/audio/pd-plugins/helmholtz { }; heme = callPackage ../applications/editors/heme { };