onetun: fix build on darwin
This commit is contained in:
parent
e42908eeaf
commit
5de59d21c9
|
@ -1,8 +1,10 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
|
||||||
, fetchFromGitHub
|
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
|
, fetchFromGitHub
|
||||||
|
, stdenv
|
||||||
|
, Security
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "onetun";
|
pname = "onetun";
|
||||||
version = "0.3.4";
|
version = "0.3.4";
|
||||||
|
@ -11,12 +13,15 @@ rustPlatform.buildRustPackage rec {
|
||||||
owner = "aramperes";
|
owner = "aramperes";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
|
|
||||||
sha256 = "sha256-gVw1aVbYjDPYTtMYIXq3k+LN0gUBAbQm275sxzwoYw8=";
|
sha256 = "sha256-gVw1aVbYjDPYTtMYIXq3k+LN0gUBAbQm275sxzwoYw8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-/sOjd0JKk3MNNXYpTEXteFYtqDWYfyVItZrkX4uzjtc=";
|
cargoSha256 = "sha256-/sOjd0JKk3MNNXYpTEXteFYtqDWYfyVItZrkX4uzjtc=";
|
||||||
|
|
||||||
|
buildInputs = lib.optionals stdenv.isDarwin [
|
||||||
|
Security
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A cross-platform, user-space WireGuard port-forwarder that requires no root-access or system network configurations";
|
description = "A cross-platform, user-space WireGuard port-forwarder that requires no root-access or system network configurations";
|
||||||
homepage = "https://github.com/aramperes/onetun";
|
homepage = "https://github.com/aramperes/onetun";
|
||||||
|
|
|
@ -9535,7 +9535,9 @@ with pkgs;
|
||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
};
|
};
|
||||||
|
|
||||||
onetun = callPackage ../tools/networking/onetun { };
|
onetun = callPackage ../tools/networking/onetun {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
|
};
|
||||||
|
|
||||||
opencorsairlink = callPackage ../tools/misc/opencorsairlink { };
|
opencorsairlink = callPackage ../tools/misc/opencorsairlink { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue