mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
066db11215
This reverts commit4e6bf03504
, reversing changes made toafd997aab6
. Instead we propagate those frameworks from the compiler again
30 lines
733 B
Nix
30 lines
733 B
Nix
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, rpm, xz }:
|
|
|
|
buildGoModule rec {
|
|
pname = "clair";
|
|
version = "2.1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "quay";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "14dh9iv2g138rivvfk135m3l90kk6c1ln1iqxhbi7s99h1jixbqw";
|
|
};
|
|
|
|
modSha256 = "0rgkrid58kji39nlmiii95r8shbzr6dwalj5m7qwxy5w1rcaljr5";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/clair \
|
|
--prefix PATH : "${lib.makeBinPath [ rpm xz ]}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Vulnerability Static Analysis for Containers";
|
|
homepage = "https://github.com/quay/clair";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ marsam ];
|
|
};
|
|
}
|