subxt: fix build on darwin

This commit is contained in:
Weijia Wang 2024-01-03 21:25:00 +01:00
parent a1dae0c115
commit 3562003aa0

View File

@ -3,6 +3,7 @@
, rustPlatform
, fetchFromGitHub
, cmake
, darwin
}:
rustPlatform.buildRustPackage rec {
@ -24,6 +25,10 @@ rustPlatform.buildRustPackage rec {
# Needed by wabt-sys
nativeBuildInputs = [ cmake ];
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
# Requires a running substrate node
doCheck = false;