nix-cargo-integration icon indicating copy to clipboard operation
nix-cargo-integration copied to clipboard

Cross compilation support

Open 90-008 opened this issue 4 years ago • 6 comments

90-008 avatar May 19 '21 02:05 90-008

Any update on this? This flake is awesome, but cross-compilation is pretty important for some projects :).

bobbbay avatar Nov 28 '21 20:11 bobbbay

Hey, thanks for the interest. I intend to work on this, but currently I'm working on dream2nix so that I can use it in nix-cargo-integration (#49). dream2nix currently doesn't implement support for cross-compilation, but when it does it would mean that nix-cargo-integration essentially gets it for free.

90-008 avatar Nov 28 '21 20:11 90-008

Does dream2nix still doesn't support cross-compilation?

a-kenji avatar Mar 06 '22 12:03 a-kenji

I got cross-compilation working on this commit by basically just setting targets in rust-toolchain.toml], but since the migration to flake-parts, it doesn't seem to be quite that simple.

blm768 avatar May 07 '23 17:05 blm768

I got cross-compilation working on this commit by basically just setting targets in rust-toolchain.toml], but since the migration to flake-parts, it doesn't seem to be quite that simple.

What exactly is the problem you are having right now? I've an example in the repo that uses targets as well and it seems to be working fine.

90-008 avatar May 10 '23 21:05 90-008

I was trying to cross-compile for the Raspberry Pi Pico. I must have updated some flake to a bad revision; the current ones let me compile successfully.

blm768 avatar May 14 '23 02:05 blm768