Skip to content

Commit

Permalink
chore: Try to fix intel mac build
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Jul 10, 2024
1 parent ac5a011 commit 141b295
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,16 @@
libiconv
pkg-config
];
buildInputs = lib.optionals pkgs.stdenv.isLinux [
buildInputs = lib.optionals pkgs.stdenv.isDarwin
(
with pkgs.darwin.apple_sdk.frameworks; [
IOKit
# apple_sdk refers to SDK version 10.12. To compile for `x86_64-darwin` we need 11.0
# see: https://github.com/NixOS/nixpkgs/pull/261683#issuecomment-1772935802
pkgs.darwin.apple_sdk_11_0.frameworks.CoreFoundation
]
)
++ lib.optionals pkgs.stdenv.isLinux [
pkgs.openssl
];
DEVOUR_FLAKE = inputs.devour-flake;
Expand Down

0 comments on commit 141b295

Please sign in to comment.