1
0
Fork 0
nix-scripts/mcu/rustPlatform.nix

24 lines
417 B
Nix
Raw Normal View History

2019-05-31 18:08:19 +08:00
{ recurseIntoAttrs, stdenv, lib,
makeRustPlatform,
fetchurl, patchelf,
rustManifest ? ./channel-rust-nightly.toml
}:
let
targets = [
"thumbv7em-none-eabihf"
];
rustChannel =
lib.rustLib.fromManifestFile rustManifest {
2021-08-09 14:33:17 +08:00
inherit stdenv lib fetchurl patchelf;
2019-05-31 18:08:19 +08:00
};
rust =
rustChannel.rust.override {
inherit targets;
};
in
makeRustPlatform {
rustc = rust;
cargo = rust;
}