datree: 0.15.22 -> 1.5.25

This commit is contained in:
Jan Christoph Ebersbach 2022-05-10 11:20:18 +02:00
parent 906119684b
commit f9de76b5e2
No known key found for this signature in database
GPG Key ID: 444912B0B381009F
2 changed files with 25 additions and 6 deletions

View File

@ -1,30 +1,47 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "datree";
version = "0.15.22";
version = "1.5.25";
src = fetchFromGitHub {
owner = "datreeio";
repo = "datree";
rev = version;
hash = "sha256-g5u2QQtVmNp01KtUKwC8uoEIuoBDLHsOlRz1Mv0n/y8=";
hash = "sha256-OB5o/ouA6a2/OUnhibTKYCskCFmJIuDcXLrNTNWtNEQ=";
};
vendorSha256 = "1cvlvlwdk41f145kzifg7rv7ymwhc9k0ck91bn106240rq1igcr0";
vendorSha256 = "sha256-6Ve7Ui90KHsFwRs6/uyjqHgRY6U7zFWijSFcVuOXdEM=";
ldflags = [
"-extldflags '-static'"
"-s"
"-w"
"-X github.com/datreeio/datree/cmd.CliVersion=${version}"
];
nativeBuildInputs = [ installShellFiles ];
doInstallCheck = true;
installCheckPhase = ''
$out/bin/datree version | grep ${version} > /dev/null
'';
postInstall = ''
for shell in bash fish zsh; do
$out/bin/datree completion $shell > datree.$shell
installShellCompletion datree.$shell
done
'';
doCheck = true;
meta = with lib; {
description = "CLI tool to ensure K8s manifests and Helm charts follow best practices as well as your organizations policies";
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 ];
mainProgram = "datree";
};
}

View File

@ -15603,7 +15603,9 @@ with pkgs;
cli11 = callPackage ../development/tools/misc/cli11 { };
datree = callPackage ../development/tools/datree { };
datree = callPackage ../development/tools/datree {
buildGoModule = buildGo118Module;
};
dcadec = callPackage ../development/tools/dcadec { };