diff options
author | Akshay <[email protected]> | 2020-08-24 05:40:34 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2020-08-24 05:40:34 +0100 |
commit | 28194780aa62b8f02432eb29d857adbd26d88569 (patch) | |
tree | a5498f1e64182fb0aeda31dce2701f497d21e2c2 /nix | |
parent | 8ae488341a66d27c91230b1c76d415d59c0e418b (diff) |
add readmesync
Diffstat (limited to 'nix')
-rw-r--r-- | nix/nixpkgs.nix | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/nix/nixpkgs.nix b/nix/nixpkgs.nix index b5675fb..017dc11 100644 --- a/nix/nixpkgs.nix +++ b/nix/nixpkgs.nix | |||
@@ -1,13 +1,8 @@ | |||
1 | 1 | ||
2 | let | 2 | let |
3 | # Manage this with https://github.com/nmattia/niv | ||
4 | # or define { nixpkgs = ...; nixpkgs-mozilla = ...; } | ||
5 | # yourself. | ||
6 | sources = import ./sources.nix; | 3 | sources = import ./sources.nix; |
7 | 4 | ||
8 | rustChannelsOverlay = import "${sources.nixpkgs-mozilla}/rust-overlay.nix"; | 5 | rustChannelsOverlay = import "${sources.nixpkgs-mozilla}/rust-overlay.nix"; |
9 | # Useful if you also want to provide that in a nix-shell since some rust tools depend | ||
10 | # on that. | ||
11 | rustChannelsSrcOverlay = import "${sources.nixpkgs-mozilla}/rust-src-overlay.nix"; | 6 | rustChannelsSrcOverlay = import "${sources.nixpkgs-mozilla}/rust-src-overlay.nix"; |
12 | 7 | ||
13 | in import sources.nixpkgs { | 8 | in import sources.nixpkgs { |
@@ -15,11 +10,6 @@ in import sources.nixpkgs { | |||
15 | rustChannelsOverlay | 10 | rustChannelsOverlay |
16 | rustChannelsSrcOverlay | 11 | rustChannelsSrcOverlay |
17 | (self: super: { | 12 | (self: super: { |
18 | # Replace "latest.rustChannels.stable" with the version of the rust tools that | ||
19 | # you would like. Look at the documentation of nixpkgs-mozilla for examples. | ||
20 | # | ||
21 | # NOTE: "rust" instead of "rustc" is not a typo: It will include more than needed | ||
22 | # but also the much needed "rust-std". | ||
23 | rustc = super.latest.rustChannels.stable.rust; | 13 | rustc = super.latest.rustChannels.stable.rust; |
24 | inherit (super.latest.rustChannels.stable) cargo rust rust-fmt rust-std clippy; | 14 | inherit (super.latest.rustChannels.stable) cargo rust rust-fmt rust-std clippy; |
25 | }) | 15 | }) |