3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/datree/default.nix

31 lines
735 B
Nix
Raw Normal View History

2021-12-01 09:12:11 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "datree";
2021-12-21 14:31:11 +00:00
version = "0.14.62";
2021-12-01 09:12:11 +00:00
src = fetchFromGitHub {
owner = "datreeio";
repo = "datree";
rev = version;
2021-12-21 14:31:11 +00:00
sha256 = "sha256-yNq3GRovFm0OlYNJJGjTe5AqKG9J4I+igJ/WVNLWdKI=";
2021-12-01 09:12:11 +00:00
};
2021-12-21 14:31:11 +00:00
vendorSha256 = "sha256-SlU1lJcKCDkoihU19c8iky3Bj5ZZD9E9W0QQX9fBT1c=";
2021-12-01 09:12:11 +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 organizations policies";
homepage = "https://datree.io/";
license = [ licenses.asl20 ];
maintainers = [ maintainers.jceb ];
};
}