16 pname = "chart-testing";
19 src = fetchFromGitHub {
23 hash = "sha256-q56ZM+YzL7RRC3RD3xO3K0hIDomKun5xmSKuiDTq1cU=";
26 vendorHash = "sha256-kTlqGZVOppf+WMcFw0T9FVbu9eOWAWzotR8fPPyo2Ms=";
29 substituteInPlace pkg/config/config.go \
30 --replace "\"/etc/ct\"," "\"$out/etc/ct\","
36 "-X github.com/helm/chart-testing/v3/ct/cmd.Version=${version}"
37 "-X github.com/helm/chart-testing/v3/ct/cmd.GitCommit=${src.rev}"
38 "-X github.com/helm/chart-testing/v3/ct/cmd.BuildDate=19700101-00:00:00"
47 install -Dm644 -t $out/etc/ct etc/chart_schema.yaml
48 install -Dm644 -t $out/etc/ct etc/lintconf.yaml
50 installShellCompletion --cmd ct \
51 --bash <($out/bin/ct completion bash) \
52 --zsh <($out/bin/ct completion zsh) \
53 --fish <($out/bin/ct completion fish) \
55 wrapProgram $out/bin/ct --prefix PATH : ${
68 description = "Tool for testing Helm charts";
69 homepage = "https://github.com/helm/chart-testing";
70 license = licenses.asl20;
71 maintainers = with maintainers; [ atkinschang ];