circleci-cli: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 04:33:00 -05:00
parent a3a9f0387d
commit e00ccb36b8
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, buildGoModule }:
{ stdenv, fetchFromGitHub, buildGoModule, Security }:
buildGoModule rec {
pname = "circleci-cli";
@ -13,6 +13,8 @@ buildGoModule rec {
modSha256 = "199ai38knp50mjjhddjd70qfwx63c69rf7ddw4hpzgx5cm5a04q2";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
buildFlagsArray = [ "-ldflags=-s -w -X github.com/CircleCI-Public/circleci-cli/version.Version=${version}" ];
preBuild = ''

View File

@ -2451,7 +2451,9 @@ in
ciopfs = callPackage ../tools/filesystems/ciopfs { };
circleci-cli = callPackage ../development/tools/misc/circleci-cli { };
circleci-cli = callPackage ../development/tools/misc/circleci-cli {
inherit (darwin.apple_sdk.frameworks) Security;
};
circus = callPackage ../tools/networking/circus { };