rcp: add missing framework on darwin

This commit is contained in:
Elian Doran
2024-05-18 16:00:41 +03:00
parent 499418387c
commit 8f153fdae6
+6
View File
@@ -1,6 +1,8 @@
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, darwin
}:
rustPlatform.buildRustPackage rec {
@@ -14,6 +16,10 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-kVO2WMwB/Lv4fCcdXaWL/Gfmenky6uMNVrUwhWU9y7A=";
};
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
IOKit
]);
cargoHash = "sha256-Pa8YgFAT9nue/QLhHQm6PlTJU/myK60UcND5TthMOxc=";
RUSTFLAGS = "--cfg tokio_unstable";