rust-nix-template icon indicating copy to clipboard operation
rust-nix-template copied to clipboard

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

Open srid opened this issue 3 years ago • 3 comments

https://github.com/NixOS/nixpkgs/issues/146349

srid avatar Jul 16 '22 15:07 srid

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

srid avatar Jul 16 '22 15:07 srid

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

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

schickling avatar Aug 27 '22 08:08 schickling

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:

https://github.com/srid/rust-nix-template/blob/d2187b8dd874ec4d5c2ace6469b33a76b2592360/flake.nix#L26

to use the rosetta package, so that rosetta is used only for cargo-watch. cf. https://github.com/hercules-ci/flake-parts/issues/50#issuecomment-1212175176

srid avatar Aug 27 '22 15:08 srid

No longer an issue after #18

srid avatar Jun 26 '23 16:06 srid