feat: nightly toolchain
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
parent
389e8340e6
commit
1f6fe32adc
2 changed files with 20 additions and 3 deletions
12
flake.nix
12
flake.nix
|
@ -42,12 +42,18 @@
|
||||||
}:
|
}:
|
||||||
flake-utils.lib.eachDefaultSystem (
|
flake-utils.lib.eachDefaultSystem (
|
||||||
system: let
|
system: let
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
overlays = [(import rust-overlay)];
|
||||||
|
|
||||||
|
pkgs = (import nixpkgs) {
|
||||||
|
inherit system overlays;
|
||||||
|
};
|
||||||
|
|
||||||
inherit system;
|
inherit system;
|
||||||
inherit (pkgs) lib;
|
inherit (pkgs) lib;
|
||||||
overlays = [ (import rust-overlay) ];
|
|
||||||
|
|
||||||
craneLib = crane.lib.${system};
|
toolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
|
||||||
|
|
||||||
|
craneLib = (crane.mkLib pkgs).overrideToolchain toolchain;
|
||||||
src = craneLib.cleanCargoSource (craneLib.path ./.);
|
src = craneLib.cleanCargoSource (craneLib.path ./.);
|
||||||
|
|
||||||
# Common arguments can be set here to avoid repeating them later
|
# Common arguments can be set here to avoid repeating them later
|
||||||
|
|
11
rust-toolchain.toml
Normal file
11
rust-toolchain.toml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[toolchain]
|
||||||
|
channel = "nightly"
|
||||||
|
components = [
|
||||||
|
"rustfmt",
|
||||||
|
"rustc",
|
||||||
|
"rust-src",
|
||||||
|
"rust-analyzer",
|
||||||
|
"cargo",
|
||||||
|
"clippy",
|
||||||
|
]
|
||||||
|
profile = "minimal"
|
Loading…
Reference in a new issue