From 26330ecb99e8c9f20a33986d931e3c979f644ef7 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Wed, 7 Jul 2021 14:23:09 -0700 Subject: [PATCH] Add Security to buildInputs For some reason, the overlay at nix/overlay.nix doesn't appear to be respected (or, maybe `defaultCrateOverrides` isn't being respected). Either way, this is necessary for darwin builds to succeed. --- default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 644ebb0..4771b25 100644 --- a/default.nix +++ b/default.nix @@ -4,6 +4,8 @@ }: let + inherit (pkgs) lib; + pkg = pkgs.rustPlatform.buildRustPackage { name = "ofborg"; src = pkgs.nix-gitignore.gitignoreSource [] ./.; @@ -15,7 +17,10 @@ let buildInputs = with pkgs; [ openssl - ]; + ] ++ lib.optionals pkgs.stdenv.isDarwin (with pkgs; [ + darwin.apple_sdk.frameworks.Security + darwin.apple_sdk.frameworks.CoreFoundation + ]); preBuild = '' cargo clippy