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:
parent
0d5bae416f
commit
26330ecb99
|
@ -4,6 +4,8 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
inherit (pkgs) lib;
|
||||||
|
|
||||||
pkg = pkgs.rustPlatform.buildRustPackage {
|
pkg = pkgs.rustPlatform.buildRustPackage {
|
||||||
name = "ofborg";
|
name = "ofborg";
|
||||||
src = pkgs.nix-gitignore.gitignoreSource [] ./.;
|
src = pkgs.nix-gitignore.gitignoreSource [] ./.;
|
||||||
|
@ -15,7 +17,10 @@ let
|
||||||
|
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
openssl
|
openssl
|
||||||
];
|
] ++ lib.optionals pkgs.stdenv.isDarwin (with pkgs; [
|
||||||
|
darwin.apple_sdk.frameworks.Security
|
||||||
|
darwin.apple_sdk.frameworks.CoreFoundation
|
||||||
|
]);
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
cargo clippy
|
cargo clippy
|
||||||
|
|
Loading…
Reference in a new issue