flyctl: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 06:10:00 -05:00
parent 28a71c8f59
commit 17eed5e575
2 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ buildGoModule, fetchFromGitHub, lib }:
{ buildGoModule, fetchFromGitHub, stdenv, Security }:
buildGoModule rec {
pname = "flyctl";
@ -11,6 +11,8 @@ buildGoModule rec {
sha256 = "181j248i8j9g7kz5krg0bkbxkvmcwpz2vlknii5q3dy7yhgg19h3";
};
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
preBuild = ''
go generate ./...
'';
@ -22,7 +24,7 @@ buildGoModule rec {
modSha256 = "1mqkc7hnavvpbqar9f1d2vnm47p4car9abnk2ikyf27jr5glwmsd";
meta = with lib; {
meta = with stdenv.lib; {
description = "Command line tools for fly.io services";
homepage = "https://fly.io/";
license = licenses.asl20;

View file

@ -8156,7 +8156,9 @@ in
};
fasm-bin = callPackage ../development/compilers/fasm/bin.nix { };
flyctl = callPackage ../development/web/flyctl { };
flyctl = callPackage ../development/web/flyctl {
inherit (darwin.apple_sdk.frameworks) Security;
};
fpc = callPackage ../development/compilers/fpc { };