Use nightly rust for development
This commit is contained in:
parent
38e36482d0
commit
11be165f6d
14
flake.nix
14
flake.nix
|
@ -25,6 +25,8 @@
|
|||
};
|
||||
|
||||
rustPackage = pkgs.rust-bin.stable.latest.default;
|
||||
rustPackageNightly = pkgs.rust-bin.nightly.latest.default;
|
||||
rustPackageDev = rustPackageNightly;
|
||||
|
||||
naersk' = pkgs.callPackage naersk {
|
||||
rustc = rustPackage;
|
||||
|
@ -38,7 +40,7 @@
|
|||
hooks = {
|
||||
cargo-check = {
|
||||
enable = true;
|
||||
package = rustPackage;
|
||||
package = rustPackageDev;
|
||||
};
|
||||
cargo-deny = {
|
||||
enable = true;
|
||||
|
@ -49,8 +51,8 @@
|
|||
clippy = {
|
||||
enable = true;
|
||||
packageOverrides = {
|
||||
cargo = rustPackage;
|
||||
clippy = rustPackage;
|
||||
cargo = rustPackageDev;
|
||||
clippy = rustPackageDev;
|
||||
};
|
||||
};
|
||||
nixpkgs-fmt.enable = true;
|
||||
|
@ -63,8 +65,8 @@
|
|||
rustfmt = {
|
||||
enable = true;
|
||||
packageOverrides = {
|
||||
cargo = rustPackage;
|
||||
rustfmt = rustPackage;
|
||||
cargo = rustPackageDev;
|
||||
rustfmt = rustPackageDev;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -84,7 +86,7 @@
|
|||
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = [
|
||||
rustPackage
|
||||
rustPackageDev
|
||||
] ++ (with pkgs; [
|
||||
cargo-deny
|
||||
cargo-watch
|
||||
|
|
Loading…
Reference in a new issue