solson / rust-nightly-nix

A Nix expression for nightly Rust versions
Apache License 2.0
40 stars 7 forks source link

Example using rust-std and rustcWithSysroots #6

Closed flosse closed 8 years ago

flosse commented 8 years ago

Would you mind to add a little example how to use rust-std and rustcWithSysroots? Thanks a lot!

Ericson2314 commented 8 years ago

https://github.com/QuiltOS/QuiltOS/blob/master/default.nix#L7-L41 If you want to distill that into a PR for README, please do!

flosse commented 8 years ago

awesome! cargo build --target x86_64-unknown-linux-mus just works :)

flosse commented 8 years ago

BTW: Do you know an example for cross-compiling with nixos? At least building for a Raspberry (cargo build --target arm-unknown-linux-musleabihf) would be great :)

flosse commented 8 years ago

If you want to distill that into a PR for README, please do!

done in #7 :)

Ericson2314 commented 8 years ago

@flosse what's the question? cross compiling non-rust stuff with NixOS? Actually I'm working on that these days too---unfortunately at the moment its pretty shabby.

flosse commented 8 years ago

what's the question? cross compiling non-rust stuff with NixOS?

No, just cross-compiling rust stuff with NixOS.

Ericson2314 commented 8 years ago

Is everything here now resolved?

flosse commented 8 years ago

Is everything here now resolved?

Almost everything... I'm still interested in cross-compile solutions, but that's an other topic ;-)