forked from M-Labs/zynq-rs
default.nix: add a static channel-rust-nightly.toml that fits the current rustcSrc
part of Gitea issue #4
This commit is contained in:
parent
5ef0213b97
commit
109a203e02
File diff suppressed because it is too large
Load Diff
10
default.nix
10
default.nix
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue