kubernetes-helmPlugins.helm-dt: init at 0.4.1 (#328979)

authored by Arne Keller and committed by GitHub 5d77e1c7 c5a85882

+57
+7
maintainers/maintainer-list.nix
··· 1982 githubId = 11493130; 1983 name = "Asbjørn Olling"; 1984 }; 1985 asciimoth = { 1986 name = "Andrew"; 1987 email = "ascii@moth.contact";
··· 1982 githubId = 11493130; 1983 name = "Asbjørn Olling"; 1984 }; 1985 + ascii17 = { 1986 + name = "Allen Conlon"; 1987 + email = "software@conlon.dev"; 1988 + github = "a1994sc"; 1989 + githubId = 1966320; 1990 + keys = [ { fingerprint = "E1F3 9B80 47A5 1EB9 01F8 C385 7FE3 F668 49737 F37"; } ]; 1991 + }; 1992 asciimoth = { 1993 name = "Andrew"; 1994 email = "ascii@moth.contact";
+2
pkgs/applications/networking/cluster/helm/plugins/default.nix
··· 5 6 helm-diff = callPackage ./helm-diff.nix { }; 7 8 helm-git = callPackage ./helm-git.nix { }; 9 10 helm-mapkubeapis = callPackage ./helm-mapkubeapis.nix { };
··· 5 6 helm-diff = callPackage ./helm-diff.nix { }; 7 8 + helm-dt = callPackage ./helm-dt.nix { }; 9 + 10 helm-git = callPackage ./helm-git.nix { }; 11 12 helm-mapkubeapis = callPackage ./helm-mapkubeapis.nix { };
+48
pkgs/applications/networking/cluster/helm/plugins/helm-dt.nix
···
··· 1 + { 2 + buildGoModule, 3 + fetchFromGitHub, 4 + lib, 5 + }: 6 + buildGoModule rec { 7 + pname = "helm-dt"; 8 + version = "0.4.1"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "vmware-labs"; 12 + repo = "distribution-tooling-for-helm"; 13 + rev = "refs/tags/v${version}"; 14 + hash = "sha256-KrQAlB0ORNzKIG2vxych3gVBytTh3Hhnjsyn1ia1ZQM="; 15 + }; 16 + 17 + vendorHash = "sha256-T8Kk+9NAhYOvSq94HOEE53BT7Xh9tU1gJ420o/tiVEo="; 18 + 19 + ldflags = [ 20 + "-s" 21 + "-w" 22 + "-X 'main.BuildDate=1970-01-01 00:00:00 UTC'" 23 + "-X 'main.Commit=v${version}'" 24 + ]; 25 + 26 + # NOTE: Remove the install and upgrade hooks. 27 + postPatch = '' 28 + sed -i '/^hooks:/,+2 d' plugin.yaml 29 + ''; 30 + 31 + # require network/login 32 + doCheck = false; 33 + CGO_ENABLED = 1; 34 + 35 + postInstall = '' 36 + install -dm755 $out/helm-dt/bin 37 + mv $out/bin/dt $out/helm-dt/bin/dt 38 + rmdir $out/bin 39 + install -m644 -Dt $out/helm-dt plugin.yaml 40 + ''; 41 + 42 + meta = { 43 + description = "Helm Distribution plugin is is a set of utilities and Helm Plugin for making offline work with Helm Charts easier"; 44 + homepage = "https://github.com/vmware-labs/distribution-tooling-for-helm"; 45 + maintainers = with lib.maintainers; [ ascii17 ]; 46 + license = lib.licenses.mit; 47 + }; 48 + }