13 src = fetchFromGitHub {
16 rev = "refs/tags/${version}";
17 hash = "sha256-W1eX7eUMdPGbHA/f08xkG2EUeZmaunEAQn7/LRBe2nk=";
20 vendorHash = "sha256-+PQhuIO4KjXtW/ZcS0OamuOHzK7ZL+nwOBxeCRoXuKE=";
22 nativeBuildInputs = [ installShellFiles ];
27 "-X github.com/datreeio/datree/cmd.CliVersion=${version}"
33 installShellCompletion \
35 --bash <($out/bin/datree completion bash) \
36 --fish <($out/bin/datree completion fish) \
37 --zsh <($out/bin/datree completion zsh)
40 passthru.tests.version = testers.testVersion {
42 command = "datree version";
46 description = "CLI tool to ensure K8s manifests and Helm charts follow best practices";
47 mainProgram = "datree";
49 Datree provides an E2E policy enforcement solution to run automatic checks
50 for rule violations. Datree can be used on the command line, admission
51 webhook, or even as a kubectl plugin to run policies against Kubernetes
54 homepage = "https://datree.io/";
55 changelog = "https://github.com/datreeio/datree/releases/tag/${version}";
56 license = licenses.asl20;
57 maintainers = with maintainers; [ azahi jceb ];