2020-06-24 14:14:58 +08:00
|
|
|
{ recurseIntoAttrs, stdenv, lib,
|
|
|
|
makeRustPlatform, defaultCrateOverrides,
|
|
|
|
fetchurl, patchelf,
|
|
|
|
rustManifest ? ./channel-rust-nightly.toml
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
targets = [
|
|
|
|
"thumbv7em-none-eabihf" # For ARM Cortex-M4 or M7 w/ FPU support
|
|
|
|
];
|
|
|
|
rustChannel =
|
|
|
|
lib.rustLib.fromManifestFile rustManifest {
|
2021-09-02 17:10:03 +08:00
|
|
|
inherit stdenv lib fetchurl patchelf;
|
2020-06-24 14:14:58 +08:00
|
|
|
};
|
|
|
|
rust =
|
|
|
|
rustChannel.rust.override {
|
|
|
|
inherit targets;
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
makeRustPlatform {
|
|
|
|
rustc = rust;
|
|
|
|
cargo = rust;
|
|
|
|
}
|