diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2019-01-08 11:35:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-08 11:35:47 +0100 |
commit | f2ba764e4d11a4a541776b9fadf3d0fedb23662f (patch) | |
tree | 3ff264caec1150cf5779019b7365a64f93b803fb /pkgs/tools | |
parent | 0e1f651795cc94999da91d30023cb1a06140bead (diff) | |
parent | 23da4c67c8de90df289a596e2f7537ff3e0bcea6 (diff) | |
download | nixlib-f2ba764e4d11a4a541776b9fadf3d0fedb23662f.tar nixlib-f2ba764e4d11a4a541776b9fadf3d0fedb23662f.tar.gz nixlib-f2ba764e4d11a4a541776b9fadf3d0fedb23662f.tar.bz2 nixlib-f2ba764e4d11a4a541776b9fadf3d0fedb23662f.tar.lz nixlib-f2ba764e4d11a4a541776b9fadf3d0fedb23662f.tar.xz nixlib-f2ba764e4d11a4a541776b9fadf3d0fedb23662f.tar.zst nixlib-f2ba764e4d11a4a541776b9fadf3d0fedb23662f.zip |
Merge pull request #53476 from marsam/init-clair
clair: init at 2.0.7
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/admin/clair/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/admin/clair/default.nix b/pkgs/tools/admin/clair/default.nix new file mode 100644 index 000000000000..8f521ed36d09 --- /dev/null +++ b/pkgs/tools/admin/clair/default.nix @@ -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 ]; + }; +} |