forked from AstarNetwork/Astar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: bump nix rust to match
rust-toolchain.toml
(AstarNetwork#867)
* chore: bump nix rust to match `rust-toolchain.toml` * chore: switch to `rust-overlay` for nix rust
- Loading branch information
1 parent
83998b6
commit 7d8d687
Showing
2 changed files
with
5 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ moz_overlay ? import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz) | ||
{ rust-overlay ? import (builtins.fetchTarball https://github.com/oxalica/rust-overlay/archive/master.tar.gz) | ||
, nixpkgs ? import (builtins.fetchTarball https://github.com/nixos/nixpkgs-channels/archive/nixos-21.11.tar.gz) | ||
}: | ||
|
||
nixpkgs { | ||
overlays = [ moz_overlay ]; | ||
overlays = [ rust-overlay ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
{ moz_overlay ? import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz) | ||
{ rust-overlay ? import (builtins.fetchTarball https://github.com/oxalica/rust-overlay/archive/master.tar.gz) | ||
}: | ||
|
||
let | ||
pkgs = import <nixpkgs> { overlays = [ moz_overlay ]; }; | ||
channel = pkgs.rustChannelOf { date = "2022-08-05"; channel = "nightly"; }; | ||
pkgs = import <nixpkgs> { overlays = [ rust-overlay ]; }; | ||
in { | ||
inherit pkgs; | ||
rust-nightly = channel.rust.override { | ||
targets = [ "wasm32-unknown-unknown" ]; | ||
extensions = [ "rustfmt-preview" ]; | ||
}; | ||
rust-nightly = pkgs.rust-bin.fromRustupToolchainFile ../../rust-toolchain.toml; | ||
} |