iamy: fix build on darwin

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

View File

@ -1,11 +1,9 @@
{ stdenv, buildGoModule, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
buildGoModule rec {
pname = "iamy";
version = "2.3.2";
goPackagePath = "github.com/99designs/iamy";
src = fetchFromGitHub {
owner = "99designs";
repo = "iamy";
@ -15,6 +13,8 @@ buildGoModule rec {
modSha256 = "0akak573zvz3xg5d7vf0ch2mrmj1jkzcdc29v3kn43f7944c2wcl";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
buildFlagsArray = [''-ldflags=
-X main.Version=v${version} -s -w
''];

View File

@ -757,7 +757,9 @@ in
inherit (darwin.apple_sdk.frameworks) Security;
};
iamy = callPackage ../tools/admin/iamy { };
iamy = callPackage ../tools/admin/iamy {
inherit (darwin.apple_sdk.frameworks) Security;
};
azure-cli = callPackage ../tools/admin/azure-cli { python = python3; };