srid/rust-nix-template

macOS `cargo-watch` fails to build (bin/run broken)

srid opened this issue · 4 comments

srid commented

Works in rosetta though (--option system x86_64-darwin).

Works in rosetta though (--option system x86_64-darwin).

@srid can this be configured via a Nix flake as well?

srid commented

nix develop --option system x86_64-darwin should work; is that what you mean?

The proper way for this workaround, however, probably is to change this:

common.pkgs.cargo-watch

to use the rosetta package, so that rosetta is used only for cargo-watch. cf. hercules-ci/flake-parts#50 (comment)

srid commented

No longer an issue after #18