Compare commits
3 Commits
83af858a24
...
478eebb5bf
| Author | SHA1 | Date | |
|---|---|---|---|
| 478eebb5bf | |||
| f8211dc44a | |||
| cc27056280 |
@@ -1,9 +1,12 @@
|
|||||||
let
|
let
|
||||||
rustOverlay = import (
|
rustOverlay = import (
|
||||||
builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz"
|
builtins.fetchTarball {
|
||||||
|
url = "https://github.com/oxalica/rust-overlay/archive/master.tar.gz";
|
||||||
|
sha256 = "0qgrkgc695a7gja83dngxrcx4gdg9056gvg5325i5yyjxg0ni6c9";
|
||||||
|
}
|
||||||
);
|
);
|
||||||
pkgsDefault = import <nixpkgs> { overlays = [ rustOverlay ]; };
|
pkgsDefault = import <nixpkgs> { overlays = [ rustOverlay ]; };
|
||||||
rustToolchain = pkgsDefault.rust-bin.stable."1.94.0".default;
|
rustToolchain = pkgsDefault.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
|
||||||
rustPlatformDefault = pkgsDefault.makeRustPlatform {
|
rustPlatformDefault = pkgsDefault.makeRustPlatform {
|
||||||
cargo = rustToolchain;
|
cargo = rustToolchain;
|
||||||
rustc = rustToolchain;
|
rustc = rustToolchain;
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
overlays = [ (import rust-overlay) ];
|
overlays = [ (import rust-overlay) ];
|
||||||
pkgs = import nixpkgs { inherit system overlays; };
|
pkgs = import nixpkgs { inherit system overlays; };
|
||||||
|
|
||||||
rustToolchain = pkgs.rust-bin.stable."1.94.0".default;
|
rustToolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
|
||||||
|
|
||||||
rustPlatform = pkgs.makeRustPlatform {
|
rustPlatform = pkgs.makeRustPlatform {
|
||||||
cargo = rustToolchain;
|
cargo = rustToolchain;
|
||||||
|
|||||||
2
rust-toolchain.toml
Normal file
2
rust-toolchain.toml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
[toolchain]
|
||||||
|
channel = "1.94.0"
|
||||||
Reference in New Issue
Block a user