2020-07-16 13:40:39 +00:00
|
|
|
{ nixpkgs ? <nixpkgs>, system ? builtins.currentSystem
|
|
|
|
, sources ? import ./sources.nix { inherit system; } }:
|
2020-06-17 11:06:40 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
mozPkgs = import "${sources.nixpkgsMoz}/package-set.nix" {
|
2020-07-16 13:40:39 +00:00
|
|
|
pkgs = import nixpkgs { inherit system; };
|
2020-06-17 11:06:40 +00:00
|
|
|
};
|
2020-07-16 13:40:39 +00:00
|
|
|
rustChannel = mozPkgs.rustChannelOf {
|
|
|
|
rustToolchain = ../rust-toolchain;
|
2020-08-18 14:51:25 +00:00
|
|
|
sha256 = "sha256-hKjJt5RAI9cf55orvwGEkOXIGOaySX5dD2aj3iQ/IDs=";
|
2020-07-16 13:40:39 +00:00
|
|
|
};
|
|
|
|
in import nixpkgs {
|
|
|
|
inherit system;
|
2020-06-17 11:06:40 +00:00
|
|
|
overlays = [
|
|
|
|
(self: super: {
|
|
|
|
rustc = rustChannel.rust;
|
|
|
|
inherit (rustChannel) cargo rust rust-std rust-src;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|