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

speedtest-rs: fix darwin build
This commit is contained in:
Stanisław Pitucha 2023-03-21 17:41:58 +11:00 committed by GitHub
commit 4e97dafe08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ];