summary refs log tree commit diff
path: root/pkgs/tools/admin/clair
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-03-21 04:45:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2020-03-21 04:45:00 -0500
commitb47c4218bb6eeb52c177c7cb4a5025fea8889ed4 (patch)
tree6160bf502902df3bf531a9ff98b6eaa9267f5df4 /pkgs/tools/admin/clair
parent91aacecb693d56c2ec2de13029c3da15d6bb8dff (diff)
downloadnixpkgs-b47c4218bb6eeb52c177c7cb4a5025fea8889ed4.tar
nixpkgs-b47c4218bb6eeb52c177c7cb4a5025fea8889ed4.tar.gz
nixpkgs-b47c4218bb6eeb52c177c7cb4a5025fea8889ed4.tar.bz2
nixpkgs-b47c4218bb6eeb52c177c7cb4a5025fea8889ed4.tar.lz
nixpkgs-b47c4218bb6eeb52c177c7cb4a5025fea8889ed4.tar.xz
nixpkgs-b47c4218bb6eeb52c177c7cb4a5025fea8889ed4.tar.zst
nixpkgs-b47c4218bb6eeb52c177c7cb4a5025fea8889ed4.zip
clair: fix build on darwin
Diffstat (limited to 'pkgs/tools/admin/clair')
-rw-r--r--pkgs/tools/admin/clair/default.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/tools/admin/clair/default.nix b/pkgs/tools/admin/clair/default.nix
index 3f4d00736ad..a12b8abe120 100644
--- a/pkgs/tools/admin/clair/default.nix
+++ b/pkgs/tools/admin/clair/default.nix
@@ -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;