2021-12-06 16:07:01 +00:00
|
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
|
pname = "datree";
|
2021-12-30 13:39:12 +00:00
|
|
|
|
version = "0.14.87";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "datreeio";
|
|
|
|
|
repo = "datree";
|
|
|
|
|
rev = version;
|
2021-12-30 13:39:12 +00:00
|
|
|
|
sha256 = "sha256-zoFWiqrKdTh6XDrKx2mQe3NqK03so6MqIX0sSQHQa5U=";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
};
|
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
|
vendorSha256 = "sha256-HaOgRbF3gMsl6PufdB5IZ2sLunvPo4GeObLb7DRSD0o=";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
|
};
|
|
|
|
|
}
|