forked from M-Labs/nix-scripts
24 lines
417 B
Nix
24 lines
417 B
Nix
{ recurseIntoAttrs, stdenv, lib,
|
|
makeRustPlatform,
|
|
fetchurl, patchelf,
|
|
rustManifest ? ./channel-rust-nightly.toml
|
|
}:
|
|
|
|
let
|
|
targets = [
|
|
"thumbv7em-none-eabihf"
|
|
];
|
|
rustChannel =
|
|
lib.rustLib.fromManifestFile rustManifest {
|
|
inherit stdenv lib fetchurl patchelf;
|
|
};
|
|
rust =
|
|
rustChannel.rust.override {
|
|
inherit targets;
|
|
};
|
|
in
|
|
makeRustPlatform {
|
|
rustc = rust;
|
|
cargo = rust;
|
|
}
|