thermostat/nix/rustPlatform.nix

17 lines
405 B
Nix
Raw Normal View History

2019-03-07 23:27:33 +08:00
{ recurseIntoAttrs, makeRustPlatform, rustChannelOfTargets, rustChannel ? "nightly" }:
let
targets = [
# "x86_64-unknown-linux-gnu"
# "thumbv6m-none-eabi"
# "thumbv7em-none-eabi"
"thumbv7em-none-eabihf"
];
2019-03-08 01:24:21 +08:00
rust = builtins.trace "rustChannel: selected channel ${rustChannel}"
2019-03-07 23:27:33 +08:00
rustChannelOfTargets rustChannel null targets;
in
makeRustPlatform {
rustc = rust;
cargo = rust;
}