15 pname = "chart-testing";
18 src = fetchFromGitHub {
22 hash = "sha256-eiU8omDEGDJVmumHwZkNix7qMVkoR6Irg0x9dTBzadA=";
25 vendorHash = "sha256-o9oZnQPztrK6HvclPt33Y05GQFWDsnUYti5x8R7aWS8=";
28 substituteInPlace pkg/config/config.go \
29 --replace "\"/etc/ct\"," "\"$out/etc/ct\","
35 "-X github.com/helm/chart-testing/v3/ct/cmd.Version=${version}"
36 "-X github.com/helm/chart-testing/v3/ct/cmd.GitCommit=${src.rev}"
37 "-X github.com/helm/chart-testing/v3/ct/cmd.BuildDate=19700101-00:00:00"
40 nativeBuildInputs = [ installShellFiles makeWrapper ];
43 install -Dm644 -t $out/etc/ct etc/chart_schema.yaml
44 install -Dm644 -t $out/etc/ct etc/lintconf.yaml
46 installShellCompletion --cmd ct \
47 --bash <($out/bin/ct completion bash) \
48 --zsh <($out/bin/ct completion zsh) \
49 --fish <($out/bin/ct completion fish) \
51 wrapProgram $out/bin/ct --prefix PATH : ${lib.makeBinPath [
62 description = "Tool for testing Helm charts";
63 homepage = "https://github.com/helm/chart-testing";
64 license = licenses.asl20;
65 maintainers = with maintainers; [ atkinschang ];