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;
|
|
|
|
sha256 = "sha256-18R7sZfLGmtYkz24jUaq268fJO2A71p+dWvGm4DgqEw=";
|
|
|
|
};
|
|
|
|
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;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|