From f238222f1bf43539397f241871922a866301bd13 Mon Sep 17 00:00:00 2001 From: Jan Christoph Ebersbach Date: Wed, 1 Dec 2021 10:12:11 +0100 Subject: [PATCH] datree: init at 0.14.49 --- pkgs/development/tools/datree/default.nix | 30 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/tools/datree/default.nix diff --git a/pkgs/development/tools/datree/default.nix b/pkgs/development/tools/datree/default.nix new file mode 100644 index 000000000000..4950dca5add1 --- /dev/null +++ b/pkgs/development/tools/datree/default.nix @@ -0,0 +1,30 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "datree"; + version = "0.14.49"; + + src = fetchFromGitHub { + owner = "datreeio"; + repo = "datree"; + rev = version; + sha256 = "0m126jjklkwiwzg44xkii9gx0pmhqm7xdj0hblsrp09jnym7rjns"; + }; + + vendorSha256 = "0msgq7bmy424bcyx23srjs7w2bck4b7zad8mi8l3j20ajya3amaa"; + + ldflags = [ + "-s" + "-w" + "-X github.com/datreeio/datree/cmd.CliVersion=${version}" + ]; + + doCheck = true; + + meta = with lib; { + description = "CLI tool to ensure K8s manifests and Helm charts follow best practices as well as your organization’s policies"; + homepage = "https://datree.io/"; + license = [ licenses.asl20 ]; + maintainers = [ maintainers.jceb ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 214e93b677d2..151afd5f3877 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14450,6 +14450,8 @@ with pkgs; cli11 = callPackage ../development/tools/misc/cli11 { }; + datree = callPackage ../development/tools/datree { }; + dcadec = callPackage ../development/tools/dcadec { }; dejagnu = callPackage ../development/tools/misc/dejagnu { };