Skip to content

Commit

Permalink
Fix darwin build
Browse files Browse the repository at this point in the history
  • Loading branch information
ThetaSinner committed Jun 24, 2024
1 parent ffbb237 commit b89789d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
(defineHolochainPackages { crate = "hc"; package = "holochain_cli"; }) //
(defineHolochainPackages { crate = "hc_run_local_services"; package = "holochain_cli_run_local_services"; }) //
(defineHolochainPackages { crate = "holochain_terminal"; package = "hcterm"; }) //
(defineLairKeystorePackages { }) // (if localSystem != "aarch64-linux" then {
(defineLairKeystorePackages { }) // (if localSystem == "x86_64-linux" then {
holonix_holochain = extractHolochainBin "holochain";
holonix_hc = extractHolochainBin "hc";
holonix_hc_run_local_services = extractHolochainBin "hc-run-local-services";
Expand Down
5 changes: 5 additions & 0 deletions modules/lair-keystore-cross.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ let
perl
];

buildInputs = [ ] ++ (pkgs.lib.optionals pkgs.stdenv.isDarwin [
# additional packages needed for darwin platforms
pkgs.darwin.apple_sdk.frameworks.Security
]);

# Tell cargo about the linker and an optional emulater. So they can be used in `cargo build`
# and `cargo run`.
# Environment variables are in format `CARGO_TARGET_<UPPERCASE_UNDERSCORE_RUST_TRIPLE>_LINKER`.
Expand Down

0 comments on commit b89789d

Please sign in to comment.