mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
clair: fix build on darwin
This commit is contained in:
parent
91aacecb69
commit
b47c4218bb
2 changed files with 8 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, rpm, xz }:
|
||||
{ stdenv, buildGoModule, fetchFromGitHub, makeWrapper, rpm, xz, Security }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "clair";
|
||||
|
@ -13,14 +13,16 @@ buildGoModule rec {
|
|||
|
||||
modSha256 = "0rgkrid58kji39nlmiii95r8shbzr6dwalj5m7qwxy5w1rcaljr5";
|
||||
|
||||
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/clair \
|
||||
--prefix PATH : "${lib.makeBinPath [ rpm xz ]}"
|
||||
--prefix PATH : "${stdenv.lib.makeBinPath [ rpm xz ]}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = with stdenv.lib; {
|
||||
description = "Vulnerability Static Analysis for Containers";
|
||||
homepage = "https://github.com/quay/clair";
|
||||
license = licenses.asl20;
|
||||
|
|
|
@ -856,7 +856,9 @@ in
|
|||
withDriver = false;
|
||||
};
|
||||
|
||||
clair = callPackage ../tools/admin/clair { };
|
||||
clair = callPackage ../tools/admin/clair {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
cloud-sql-proxy = callPackage ../tools/misc/cloud-sql-proxy { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue