clair: 4.4.2 -> 4.4.4

This commit is contained in:
Fabian Affolter 2022-06-13 12:12:50 +02:00
parent 94c37705eb
commit 5e7840d676

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 \