From 9a02de4373e0ec272d08a417b269a28ac8b961b4 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Tue, 28 Sep 2021 12:48:27 +0300 Subject: Fix darwin build Frameworks are libraries used at runtime, so should be in buildInputs and not nativeBuildInputs. Closes https://github.com/serokell/deploy-rs/issues/132 --- flake.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 0fecba6..3344e71 100644 --- a/flake.nix +++ b/flake.nix @@ -20,10 +20,10 @@ overlay = final: prev: let system = final.system; - isDarwin = final.lib.strings.hasSuffix "-darwin" system; - darwinOptions = final.lib.optionalAttrs isDarwin { - nativeBuildInputs = [ - final.darwin.apple_sdk.frameworks.SystemConfiguration + darwinOptions = final.lib.optionalAttrs final.stdenv.isDarwin { + buildInputs = with final.darwin.apple_sdk.frameworks; [ + SystemConfiguration + CoreServices ]; }; in -- cgit v1.2.3