From 1e5a60fe7d3cf336f3ac75f1e3180f469d4e635a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Tue, 21 Mar 2023 14:39:38 +1100 Subject: [PATCH] speedtest-rs: fix darwin build Add the required frameworks. --- pkgs/tools/networking/speedtest-rs/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/networking/speedtest-rs/default.nix b/pkgs/tools/networking/speedtest-rs/default.nix index ecf9801c39be..182f041d2977 100644 --- a/pkgs/tools/networking/speedtest-rs/default.nix +++ b/pkgs/tools/networking/speedtest-rs/default.nix @@ -3,6 +3,8 @@ , fetchFromGitHub , openssl , pkg-config +, stdenv +, darwin }: rustPlatform.buildRustPackage rec { @@ -16,7 +18,8 @@ rustPlatform.buildRustPackage rec { hash = "sha256-/d6A+Arlcc3SCKPSkYXwvqY2BRyAbA33Ah+GddHcc5M="; }; - buildInputs = [ openssl ]; + buildInputs = [ openssl ] ++ + lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]; nativeBuildInputs = [ pkg-config ];