mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-30 09:00:19 +02:00
Merge pull request #76163 from marsam/update-clair
clair: 2.0.9 -> 2.1.2
This commit is contained in:
commit
3bb6cf1598
|
@ -1,28 +1,28 @@
|
||||||
{ lib, buildGoPackage, fetchFromGitHub, makeWrapper, rpm, xz }:
|
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, rpm, xz }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoModule rec {
|
||||||
pname = "clair";
|
pname = "clair";
|
||||||
version = "2.0.9";
|
version = "2.1.2";
|
||||||
|
|
||||||
goPackagePath = "github.com/coreos/clair";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "coreos";
|
owner = "quay";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1lcrqka4daqqjagx2mbfzg3z8wxg669mw1lb450nrlc33ji2iwdm";
|
sha256 = "14dh9iv2g138rivvfk135m3l90kk6c1ln1iqxhbi7s99h1jixbqw";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
modSha256 = "0rgkrid58kji39nlmiii95r8shbzr6dwalj5m7qwxy5w1rcaljr5";
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $bin/bin/clair \
|
wrapProgram $out/bin/clair \
|
||||||
--prefix PATH : "${lib.makeBinPath [ rpm xz ]}"
|
--prefix PATH : "${lib.makeBinPath [ rpm xz ]}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Vulnerability Static Analysis for Containers";
|
description = "Vulnerability Static Analysis for Containers";
|
||||||
homepage = "https://github.com/coreos/clair";
|
homepage = "https://github.com/quay/clair";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ marsam ];
|
maintainers = with maintainers; [ marsam ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue