mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
clair: init at 2.0.7
This commit is contained in:
parent
8e05911ccb
commit
23da4c67c8
29
pkgs/tools/admin/clair/default.nix
Normal file
29
pkgs/tools/admin/clair/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user