iamy: fix build on darwin
This commit is contained in:
parent
b139887056
commit
4f8836ee99
2 changed files with 6 additions and 4 deletions
|
@ -1,11 +1,9 @@
|
||||||
{ stdenv, buildGoModule, fetchFromGitHub }:
|
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "iamy";
|
pname = "iamy";
|
||||||
version = "2.3.2";
|
version = "2.3.2";
|
||||||
|
|
||||||
goPackagePath = "github.com/99designs/iamy";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "99designs";
|
owner = "99designs";
|
||||||
repo = "iamy";
|
repo = "iamy";
|
||||||
|
@ -15,6 +13,8 @@ buildGoModule rec {
|
||||||
|
|
||||||
modSha256 = "0akak573zvz3xg5d7vf0ch2mrmj1jkzcdc29v3kn43f7944c2wcl";
|
modSha256 = "0akak573zvz3xg5d7vf0ch2mrmj1jkzcdc29v3kn43f7944c2wcl";
|
||||||
|
|
||||||
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
||||||
|
|
||||||
buildFlagsArray = [''-ldflags=
|
buildFlagsArray = [''-ldflags=
|
||||||
-X main.Version=v${version} -s -w
|
-X main.Version=v${version} -s -w
|
||||||
''];
|
''];
|
||||||
|
|
|
@ -757,7 +757,9 @@ in
|
||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
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; };
|
azure-cli = callPackage ../tools/admin/azure-cli { python = python3; };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue