From f417effa8124f9169c2478ad02340a0d47867557 Mon Sep 17 00:00:00 2001 From: link2xt Date: Thu, 7 Mar 2024 23:44:17 +0000 Subject: [PATCH] build(nix): allow cross-compilation for darwin --- flake.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/flake.nix b/flake.nix index 30523c224..7cfd84a05 100644 --- a/flake.nix +++ b/flake.nix @@ -241,6 +241,9 @@ nativeBuildInputs = [ pkgs.perl # Needed to build vendored OpenSSL. ]; + buildInputs = pkgs.lib.optionals isDarwin [ + pkgs.darwin.apple_sdk.frameworks.SystemConfiguration + ]; auditable = false; # Avoid cargo-auditable failures. doCheck = false; # Disable test as it requires network access. @@ -355,6 +358,8 @@ mkRustPackages "x86_64-linux" // mkRustPackages "armv7l-linux" // mkRustPackages "armv6l-linux" // + mkRustPackages "x86_64-darwin" // + mkRustPackages "aarch64-darwin" // mkAndroidPackages "armeabi-v7a" // mkAndroidPackages "arm64-v8a" // mkAndroidPackages "x86" //