hcloud: fix build on darwin
This commit is contained in:
parent
7e4f82ce7f
commit
121bc52a52
2 changed files with 6 additions and 2 deletions
|
@ -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 = ''
|
||||
|
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue