wstunnel: fix darwin build (#341206)

This commit is contained in:
Aleksana 2024-09-22 22:35:12 +08:00 committed by GitHub
commit 86a7d3d24e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,9 +2,11 @@
lib,
fetchFromGitHub,
rustPlatform,
stdenv,
nixosTests,
nix-update-script,
versionCheckHook,
darwin,
}:
let
@ -25,6 +27,9 @@ rustPlatform.buildRustPackage {
cargoHash = "sha256-3b+pX/qQuhOY1OYr+CfT5wtiJcEJ8CJJsQZ4QOcYv74=";
nativeBuildInputs = [ versionCheckHook ];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.CoreServices
];
doInstallCheck = true;