From 2c5a0cac5f6f86c6a84726467722d1d28a22aaf2 Mon Sep 17 00:00:00 2001 From: link2xt Date: Thu, 7 Mar 2024 22:43:34 +0000 Subject: [PATCH] build(nix): include SystemConfiguration framework on darwin systems --- flake.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flake.nix b/flake.nix index e97ad28d5..5feba4490 100644 --- a/flake.nix +++ b/flake.nix @@ -11,6 +11,7 @@ flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; + inherit (pkgs.stdenv) isDarwin; fenixPkgs = fenix.packages.${system}; naersk' = pkgs.callPackage naersk { }; manifest = (pkgs.lib.importTOML ./Cargo.toml).package; @@ -94,6 +95,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. };