summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-09-17 17:57:14 -0400
committerGitHub <noreply@github.com>2019-09-17 17:57:14 -0400
commitfc6c3326771d95de18e18d324c64681549df32af (patch)
tree4d12ca944dd85ec9e84171aadf56a71a586140bb
parent97a0733e28115dfaf33489fe11d363d529fb7662 (diff)
parentf8860eb6701d316ae6497b72195bc1c5b2a61666 (diff)
Merge pull request #68960 from B4dM4n/boringtun-darwin
boringtun: fix darwin build
-rw-r--r--pkgs/tools/networking/boringtun/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/tools/networking/boringtun/default.nix b/pkgs/tools/networking/boringtun/default.nix
index 068d51229cb1..05e9ba1282eb 100644
--- a/pkgs/tools/networking/boringtun/default.nix
+++ b/pkgs/tools/networking/boringtun/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, rustPlatform }:
+{ stdenv, fetchFromGitHub, rustPlatform, darwin }:
rustPlatform.buildRustPackage rec {
pname = "boringtun";
@@ -21,6 +21,8 @@ rustPlatform.buildRustPackage rec {
# we append a new line to the end of file.
preConfigure = "echo '' >> .cargo/config";
+ buildInputs = stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
+
# Testing this project requires sudo, Docker and network access, etc.
doCheck = false;