31 lines
735 B
Nix
31 lines
735 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
||
|
||
buildGoModule rec {
|
||
pname = "datree";
|
||
version = "0.14.87";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "datreeio";
|
||
repo = "datree";
|
||
rev = version;
|
||
sha256 = "sha256-zoFWiqrKdTh6XDrKx2mQe3NqK03so6MqIX0sSQHQa5U=";
|
||
};
|
||
|
||
vendorSha256 = "sha256-HaOgRbF3gMsl6PufdB5IZ2sLunvPo4GeObLb7DRSD0o=";
|
||
|
||
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 ];
|
||
};
|
||
}
|