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 {
|
2021-08-09 14:53:08 +08:00
|
|
|
inherit (pkgs) stdenv lib 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;
|
|
|
|
})
|