1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00

Merge pull request #53476 from marsam/init-clair

clair: init at 2.0.7
This commit is contained in:
Maximilian Bosch 2019-01-08 11:35:47 +01:00 committed by GitHub
commit f2ba764e4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 { };
clair = callPackage ../tools/admin/clair { };
cloud-sql-proxy = callPackage ../tools/misc/cloud-sql-proxy { };
container-linux-config-transpiler = callPackage ../development/tools/container-linux-config-transpiler { };