gitAndTools.lab: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:22:00 -05:00
parent b24059bc2f
commit b30c0c8d5f
2 changed files with 6 additions and 2 deletions

View File

@ -177,7 +177,9 @@ let
inherit (darwin) Security;
};
lab = callPackage ./lab { };
lab = callPackage ./lab {
inherit (darwin.apple_sdk.frameworks) Security;
};
lefthook = callPackage ./lefthook {
inherit (darwin.apple_sdk.frameworks) Security;

View File

@ -1,4 +1,4 @@
{ stdenv, buildGoModule, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
buildGoModule rec {
pname = "lab";
@ -15,6 +15,8 @@ buildGoModule rec {
modSha256 = "03fqa7s6729g0a6ffiyc61dkldpi7vg8pvvpqak4c0mqi1dycivd";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
postInstall = ''