2020-09-09 16:51:50 +08:00
|
|
|
{ pkgs }:
|
|
|
|
|
|
|
|
let
|
|
|
|
rustManifest = ./channel-rust-nightly.toml;
|
|
|
|
|
|
|
|
targets = [];
|
|
|
|
rustChannelOfTargets = _channel: _date: targets:
|
|
|
|
(pkgs.lib.rustLib.fromManifestFile rustManifest {
|
|
|
|
inherit (pkgs) stdenv fetchurl patchelf;
|
2021-01-15 07:52:22 +08:00
|
|
|
}).rust.override {
|
|
|
|
inherit targets;
|
|
|
|
extensions = ["rust-src"];
|
|
|
|
};
|
2020-09-09 16:51:50 +08:00
|
|
|
rust =
|
|
|
|
rustChannelOfTargets "nightly" null targets;
|
|
|
|
in
|
|
|
|
pkgs.recurseIntoAttrs (pkgs.makeRustPlatform {
|
2021-01-15 07:52:22 +08:00
|
|
|
rustc = rust;
|
2020-09-09 16:51:50 +08:00
|
|
|
cargo = rust;
|
|
|
|
})
|