2021-12-01 10:12:11 +01:00
|
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
|
pname = "datree";
|
2021-12-27 06:03:58 +01:00
|
|
|
|
version = "0.14.87";
|
2021-12-01 10:12:11 +01:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "datreeio";
|
|
|
|
|
repo = "datree";
|
|
|
|
|
rev = version;
|
2021-12-27 06:03:58 +01:00
|
|
|
|
sha256 = "sha256-zoFWiqrKdTh6XDrKx2mQe3NqK03so6MqIX0sSQHQa5U=";
|
2021-12-01 10:12:11 +01:00
|
|
|
|
};
|
|
|
|
|
|
2022-01-30 04:25:31 +01:00
|
|
|
|
vendorSha256 = "sha256-HaOgRbF3gMsl6PufdB5IZ2sLunvPo4GeObLb7DRSD0o=";
|
2021-12-01 10:12:11 +01: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 ];
|
|
|
|
|
};
|
|
|
|
|
}
|