2020-03-27 07:33:21 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, rpm, xz }:
|
2019-01-06 03:40:08 +00:00
|
|
|
|
2019-12-22 05:00:00 +00:00
|
|
|
buildGoModule rec {
|
2019-01-06 03:40:08 +00:00
|
|
|
pname = "clair";
|
2020-06-06 05:42:06 +01:00
|
|
|
version = "2.1.4";
|
2019-01-06 03:40:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-12-22 05:00:00 +00:00
|
|
|
owner = "quay";
|
2019-07-10 17:04:32 +01:00
|
|
|
repo = pname;
|
2019-01-06 03:40:08 +00:00
|
|
|
rev = "v${version}";
|
2020-06-06 05:42:06 +01:00
|
|
|
sha256 = "1bvwh3ghxb3ynq8a07ka9i0rzaqg1aikxvqxmpjkwjvhwk63lwqd";
|
2019-01-06 03:40:08 +00:00
|
|
|
};
|
|
|
|
|
2020-05-01 02:59:00 +01:00
|
|
|
vendorSha256 = "0x31n50vd8660z816as6kms5dkv87b0mhblccpkvd9cbvcv2n37a";
|
2019-12-22 05:00:00 +00:00
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-01-06 03:40:08 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2019-12-22 05:00:00 +00:00
|
|
|
wrapProgram $out/bin/clair \
|
2020-03-27 07:33:21 +00:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ rpm xz ]}"
|
2019-01-06 03:40:08 +00:00
|
|
|
'';
|
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2019-01-06 03:40:08 +00:00
|
|
|
description = "Vulnerability Static Analysis for Containers";
|
2019-12-22 05:00:00 +00:00
|
|
|
homepage = "https://github.com/quay/clair";
|
2019-01-06 03:40:08 +00:00
|
|
|
license = licenses.asl20;
|
2019-07-10 17:04:32 +01:00
|
|
|
maintainers = with maintainers; [ marsam ];
|
2019-01-06 03:40:08 +00:00
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|