kubernetes-helmPlugins.helm-git: init at 0.10.0

This is necessary for running `helm` with a helmfile.yaml containing
git+https URLs.

+51 -3
+5 -3
pkgs/applications/networking/cluster/helm/plugins/default.nix
··· 2 2 3 3 { 4 4 5 - helm-diff = callPackage ./helm-diff.nix {}; 5 + helm-diff = callPackage ./helm-diff.nix { }; 6 6 7 - helm-s3 = callPackage ./helm-s3.nix {}; 7 + helm-git = callPackage ./helm-git.nix { }; 8 8 9 - helm-secrets = callPackage ./helm-secrets.nix {}; 9 + helm-s3 = callPackage ./helm-s3.nix { }; 10 + 11 + helm-secrets = callPackage ./helm-secrets.nix { }; 10 12 11 13 }
+46
pkgs/applications/networking/cluster/helm/plugins/helm-git.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , coreutils 5 + , findutils 6 + , git 7 + , gnugrep 8 + , gnused 9 + , makeWrapper 10 + }: 11 + 12 + stdenv.mkDerivation rec { 13 + pname = "helm-git"; 14 + version = "0.10.0"; 15 + 16 + src = fetchFromGitHub { 17 + owner = "aslafy-z"; 18 + repo = pname; 19 + rev = "v${version}"; 20 + sha256 = "0hvycqibmlw2zw3nm8rn73v5x1zcgm2jrfdlljbvc1n4n5vnzdrg"; 21 + }; 22 + 23 + nativeBuildInputs = [ makeWrapper ]; 24 + 25 + # NOTE: helm-git is comprised of shell scripts. 26 + dontBuild = true; 27 + 28 + installPhase = '' 29 + install -dm755 $out/helm-git 30 + install -m644 -Dt $out/helm-git plugin.yaml 31 + cp helm-git helm-git-plugin.sh $out/helm-git/ 32 + 33 + patchShebangs $out/helm-git/helm-git{,-plugin.sh} 34 + wrapProgram $out/helm-git/helm-git \ 35 + --prefix PATH : ${lib.makeBinPath [ coreutils findutils git gnugrep gnused ]} 36 + 37 + runHook postInstall 38 + ''; 39 + 40 + meta = with lib; { 41 + description = "The Helm downloader plugin that provides GIT protocol support"; 42 + inherit (src.meta) homepage; 43 + license = licenses.mit; 44 + maintainers = with maintainers; [ flokli ]; 45 + }; 46 + }