Use nightly rust for development

This commit is contained in:
Simon Bruder 2024-07-11 01:12:21 +02:00
parent 38e36482d0
commit 11be165f6d
Signed by: simon
GPG key ID: 347FF8699CDA0776

View file

@ -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