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.
This commit is contained in:
Cole Helbling 2021-07-07 14:23:09 -07:00
parent 0d5bae416f
commit 26330ecb99

View file

@ -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