clash: fix build on darwin
This commit is contained in:
parent
59bc2841b4
commit
5ea0235ba9
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchFromGitHub, buildGoModule }:
|
||||
{ stdenv, fetchFromGitHub, buildGoModule, Security }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "clash";
|
||||
|
@ -14,6 +14,8 @@ buildGoModule rec {
|
|||
goPackagePath = "github.com/Dreamacro/clash";
|
||||
modSha256 = "02bki2iq99lc9iq1mjf9rbxwspalrj7hjlk1h384w3d4s4x4fyxy";
|
||||
|
||||
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
||||
|
||||
buildFlagsArray = [
|
||||
"-ldflags="
|
||||
"-X ${goPackagePath}/constant.Version=${version}"
|
||||
|
|
|
@ -1475,7 +1475,9 @@ in
|
|||
|
||||
clac = callPackage ../tools/misc/clac {};
|
||||
|
||||
clash = callPackage ../tools/networking/clash { };
|
||||
clash = callPackage ../tools/networking/clash {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
clasp = callPackage ../tools/misc/clasp { };
|
||||
|
||||
|
|
Loading…
Reference in New Issue