Merge pull request #177499 from fabaff/clair-bump

clair: 4.4.2 -> 4.4.4
This commit is contained in:
Fabian Affolter 2022-06-13 22:47:21 +02:00 committed by GitHub
commit b568804e8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,23 +1,38 @@
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, rpm, xz }:
{ lib
, buildGoModule
, fetchFromGitHub
, makeWrapper
, rpm
, xz
}:
buildGoModule rec {
pname = "clair";
version = "4.4.2";
version = "4.4.4";
src = fetchFromGitHub {
owner = "quay";
repo = pname;
rev = "v${version}";
sha256 = "sha256-6nlVcuWAp9lWji4ruAZ//D6iEbL+zSjLDX9bYyRfTQ8=";
hash = "sha256-QfNFms1OxKPk6vimagMFGWJSl9L7JEM1rIK5kNpZlfg=";
};
vendorSha256 = "sha256-35rUeDi+7xSI2kSk9FvtubxhZq5LePNoXC66dIy6gs8=";
vendorSha256 = "sha256-Y3eymnLVbDmisV3RDAYkV+I6kTe/CoG0yLvZBOrTfig=";
nativeBuildInputs = [ makeWrapper ];
nativeBuildInputs = [
makeWrapper
];
subPackages = [ "cmd/clair" "cmd/clairctl" ];
subPackages = [
"cmd/clair"
"cmd/clairctl"
];
ldflags = [ "-s" "-w" "-X main.Version=${version}" ];
ldflags = [
"-s"
"-w"
"-X main.Version=${version}"
];
postInstall = ''
wrapProgram $out/bin/clair \