default.nix: add a static channel-rust-nightly.toml that fits the current rustcSrc

part of Gitea issue #4
This commit is contained in:
Astro 2019-09-26 17:17:31 +02:00
parent 5ef0213b97
commit 109a203e02
2 changed files with 11924 additions and 2 deletions

11916
channel-rust-nightly.toml Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,6 @@
{ # Use master branch of the overlay by default { # Use master branch of the overlay by default
mozillaOverlay ? import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz), mozillaOverlay ? import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz),
rustManifest ? ./channel-rust-nightly.toml,
}: }:
let let
@ -14,8 +15,13 @@ let
sha256 = "1nvddkxwvrsvyx187s5mwj4fwsf26xd4vr6ba1kfy7m2fj7w79hq"; sha256 = "1nvddkxwvrsvyx187s5mwj4fwsf26xd4vr6ba1kfy7m2fj7w79hq";
fetchSubmodules = true; fetchSubmodules = true;
}; };
targets = [ manifestOverlay = self: super: {
]; rustChannelOfTargets = _channel: _date: targets:
(super.lib.rustLib.fromManifestFile rustManifest {
inherit (super) stdenv fetchurl patchelf;
}).rust.override { inherit targets; };
};
targets = [];
rust = rust =
rustChannelOfTargets "nightly" null targets; rustChannelOfTargets "nightly" null targets;
rustPlatform = recurseIntoAttrs (makeRustPlatform { rustPlatform = recurseIntoAttrs (makeRustPlatform {