From a2bbddbf366838a8a767d6914e1a32214499f1a4 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 11 Jan 2022 03:39:15 +0000 Subject: [PATCH 1/2] chart-testing: 3.4.0 -> 3.5.0 --- .../networking/cluster/helm/chart-testing/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/cluster/helm/chart-testing/default.nix b/pkgs/applications/networking/cluster/helm/chart-testing/default.nix index c4365975713a..484f873a91ea 100644 --- a/pkgs/applications/networking/cluster/helm/chart-testing/default.nix +++ b/pkgs/applications/networking/cluster/helm/chart-testing/default.nix @@ -2,16 +2,16 @@ buildGoModule rec { pname = "chart-testing"; - version = "3.4.0"; + version = "3.5.0"; src = fetchFromGitHub { owner = "helm"; repo = pname; rev = "v${version}"; - sha256 = "sha256-c7Rjk2YZaQXyFwrDVwYgOCnq/F2ooIUVETXVn5FVlZE="; + sha256 = "sha256-lXi778MTeVUBtepGjIkKAX1kDEaaVzQI1gTKfcpANC0="; }; - vendorSha256 = "sha256-1Py66ljDjJC38biJ25D8KnWEi3nXAVt9QSgyH1KkwHM="; + vendorSha256 = "sha256-pNevyTibnhUK8LSM1lVnmumFazXK86q4AZ2WKFt5jok="; postPatch = '' substituteInPlace pkg/config/config.go \ From 128359aeca4ae0b07efa4912ef051a3d0e054431 Mon Sep 17 00:00:00 2001 From: legendofmiracles Date: Tue, 11 Jan 2022 21:46:01 -0600 Subject: [PATCH 2/2] chart-testing: install shell completion --- .../networking/cluster/helm/chart-testing/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/cluster/helm/chart-testing/default.nix b/pkgs/applications/networking/cluster/helm/chart-testing/default.nix index 484f873a91ea..2f6dcbe01446 100644 --- a/pkgs/applications/networking/cluster/helm/chart-testing/default.nix +++ b/pkgs/applications/networking/cluster/helm/chart-testing/default.nix @@ -1,4 +1,4 @@ -{ lib, buildGoModule, fetchFromGitHub }: +{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: buildGoModule rec { pname = "chart-testing"; @@ -26,9 +26,16 @@ buildGoModule rec { "-X github.com/helm/chart-testing/v3/ct/cmd.BuildDate=19700101-00:00:00" ]; + nativeBuildInputs = [ installShellFiles ]; + postInstall = '' install -Dm644 -t $out/etc/ct etc/chart_schema.yaml install -Dm644 -t $out/etc/ct etc/lintconf.yaml + + installShellCompletion --cmd ct \ + --bash <($out/bin/ct completion bash) \ + --zsh <($out/bin/ct completion zsh) \ + --fish <($out/bin/ct completion fish) \ ''; meta = with lib; { @@ -36,5 +43,6 @@ buildGoModule rec { homepage = "https://github.com/helm/chart-testing"; license = licenses.asl20; maintainers = with maintainers; [ atkinschang ]; + mainProgram = "ct"; }; }