mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
Merge pull request #177499 from fabaff/clair-bump
clair: 4.4.2 -> 4.4.4
This commit is contained in:
commit
b568804e8f
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user