aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix')
-rw-r--r--nix/nixpkgs.nix10
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
2let 2let
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
13in import sources.nixpkgs { 8in 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 })