hcloud: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:09:00 -05:00
parent 7e4f82ce7f
commit 121bc52a52
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, buildGoModule, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
buildGoModule rec {
pname = "hcloud";
@ -15,6 +15,8 @@ buildGoModule rec {
modSha256 = "1zy41hi2qzrdmih3pkpng8im576lhkr64zm66w73p7jyvy0kf9sx";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
buildFlagsArray = [ "-ldflags=" "-w -X github.com/hetznercloud/cli/cli.Version=${version}" ];
postInstall = ''

View File

@ -10409,7 +10409,9 @@ in
halfempty = callPackage ../development/tools/halfempty {};
hcloud = callPackage ../development/tools/hcloud { };
hcloud = callPackage ../development/tools/hcloud {
inherit (darwin.apple_sdk.frameworks) Security;
};
help2man = callPackage ../development/tools/misc/help2man { };