wip: nix build needs AppKit on mac now

This commit is contained in:
Jeremy Wall 2025-04-09 00:10:01 -04:00
parent 25a782bfed
commit 475822a7dc

View File

@ -26,7 +26,7 @@
buildInputs =
(
if pkgs.stdenv.isDarwin
then with pkgs.darwin.apple_sdk.frameworks; [Security SystemConfiguration]
then with pkgs.darwin.apple_sdk.frameworks; [Security SystemConfiguration AppKit]
else [pkgs.openssl]
)
++ [my-rust-bin];
@ -37,7 +37,12 @@
rust-bin = pkgs.rust-bin;
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [ gnumake my-rust-bin rust-analyzer cargo-tarpaulin ];
nativeBuildInputs = with pkgs; (
if pkgs.stdenv.isDarwin
then with pkgs.darwin.apple_sdk.frameworks; [Security SystemConfiguration AppKit]
else [pkgs.openssl]
)
++ [ gnumake my-rust-bin rust-analyzer cargo-tarpaulin ];
};
});
}