2021-12-06 16:07:01 +00:00
|
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
|
pname = "datree";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
version = "0.15.22";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "datreeio";
|
|
|
|
|
repo = "datree";
|
|
|
|
|
rev = version;
|
2022-03-05 16:20:37 +00:00
|
|
|
|
hash = "sha256-g5u2QQtVmNp01KtUKwC8uoEIuoBDLHsOlRz1Mv0n/y8=";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
};
|
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
|
vendorSha256 = "1cvlvlwdk41f145kzifg7rv7ymwhc9k0ck91bn106240rq1igcr0";
|
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 ];
|
|
|
|
|
};
|
|
|
|
|
}
|