clair: init at 2.0.7

This commit is contained in:
Mario Rodas 2019-01-05 22:40:08 -05:00
parent 8e05911ccb
commit 23da4c67c8
No known key found for this signature in database
GPG Key ID: 325649BCA6D53027
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{ lib, buildGoPackage, fetchFromGitHub, makeWrapper, rpm, xz }:
buildGoPackage rec {
pname = "clair";
version = "2.0.7";
goPackagePath = "github.com/coreos/clair";
src = fetchFromGitHub {
owner = "coreos";
repo = "clair";
rev = "v${version}";
sha256 = "0n4pxdw71hd1rxzgf422fvycpjkrxxnvcidys0hpjy7gs88zjz5x";
};
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $bin/bin/clair \
--prefix PATH : "${lib.makeBinPath [ rpm xz ]}"
'';
meta = with lib; {
description = "Vulnerability Static Analysis for Containers";
homepage = https://github.com/coreos/clair;
license = licenses.asl20;
maintainers = [ maintainers.marsam ];
};
}

View File

@ -685,6 +685,8 @@ in
bunny = callPackage ../tools/package-management/bunny { }; bunny = callPackage ../tools/package-management/bunny { };
clair = callPackage ../tools/admin/clair { };
cloud-sql-proxy = callPackage ../tools/misc/cloud-sql-proxy { }; cloud-sql-proxy = callPackage ../tools/misc/cloud-sql-proxy { };
container-linux-config-transpiler = callPackage ../development/tools/container-linux-config-transpiler { }; container-linux-config-transpiler = callPackage ../development/tools/container-linux-config-transpiler { };