Merge pull request #222289 from viraptor/speedtest-rs-darwin

speedtest-rs: fix darwin build

Changed files
+4 -1
pkgs
tools
networking
speedtest-rs
+4 -1
pkgs/tools/networking/speedtest-rs/default.nix
···
, fetchFromGitHub
, openssl
, pkg-config
+
, stdenv
+
, darwin
}:
rustPlatform.buildRustPackage rec {
···
hash = "sha256-/d6A+Arlcc3SCKPSkYXwvqY2BRyAbA33Ah+GddHcc5M=";
};
-
buildInputs = [ openssl ];
+
buildInputs = [ openssl ] ++
+
lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
nativeBuildInputs = [ pkg-config ];