|
|
|
@ -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}" |
|
|
|
|