eksctl: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:01:00 -05:00
parent 6552397b67
commit da93b5a367
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }: { stdenv, buildGoModule, fetchFromGitHub, Security }:
buildGoModule rec { buildGoModule rec {
pname = "eksctl"; pname = "eksctl";
@ -13,6 +13,8 @@ buildGoModule rec {
modSha256 = "0f8dlcp3q84fa5dnnzx4347ngb1raw1mxkcqpz2s3zq6d1kv0nvf"; modSha256 = "0f8dlcp3q84fa5dnnzx4347ngb1raw1mxkcqpz2s3zq6d1kv0nvf";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
subPackages = [ "cmd/eksctl" ]; subPackages = [ "cmd/eksctl" ];
buildFlags = [ "-tags netgo" "-tags release" ]; buildFlags = [ "-tags netgo" "-tags release" ];
@ -25,7 +27,7 @@ buildGoModule rec {
$out/bin/eksctl completion zsh > "$out/share/zsh/site-functions/_eksctl" $out/bin/eksctl completion zsh > "$out/share/zsh/site-functions/_eksctl"
''; '';
meta = with lib; { meta = with stdenv.lib; {
description = "A CLI for Amazon EKS"; description = "A CLI for Amazon EKS";
homepage = "https://github.com/weaveworks/eksctl"; homepage = "https://github.com/weaveworks/eksctl";
license = licenses.asl20; license = licenses.asl20;

View File

@ -1750,7 +1750,9 @@ in
eggdrop = callPackage ../tools/networking/eggdrop { }; eggdrop = callPackage ../tools/networking/eggdrop { };
eksctl = callPackage ../tools/admin/eksctl { }; eksctl = callPackage ../tools/admin/eksctl {
inherit (darwin.apple_sdk.frameworks) Security;
};
elementary-xfce-icon-theme = callPackage ../data/icons/elementary-xfce-icon-theme { }; elementary-xfce-icon-theme = callPackage ../data/icons/elementary-xfce-icon-theme { };