2020-12-16 05:58:39 +01:00
|
|
|
{
|
|
|
|
sources ? import ./nix/sources.nix,
|
|
|
|
rustNightly ? "2020-11-10",
|
|
|
|
}: let
|
|
|
|
pkgs = import sources.nixpkgs {
|
|
|
|
overlays = [
|
|
|
|
(import sources.nixpkgs-mozilla)
|
|
|
|
(self: super: let
|
|
|
|
rustChannel = super.rustChannelOf {
|
|
|
|
channel = "nightly";
|
|
|
|
date = rustNightly;
|
|
|
|
};
|
|
|
|
in rec {
|
2020-12-18 10:57:32 +01:00
|
|
|
pinnedRust = rustChannel.rust.override {
|
2020-12-16 05:58:39 +01:00
|
|
|
extensions = [ "rust-src" ];
|
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
|
|
|
in pkgs
|