diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 18 |
1 files changed, 6 insertions, 12 deletions
| @@ -18,19 +18,13 @@ | |||
| 18 | devShells.default = mkShell { | 18 | devShells.default = mkShell { |
| 19 | 19 | ||
| 20 | nativeBuildInputs = [ | 20 | nativeBuildInputs = [ |
| 21 | # stable to be introduced when the following issue is resolved | 21 | # override rustfmt with nightly toolchain version to support unstable features |
| 22 | # ideally this wouldn't be pinned to a specific nightly version but | ||
| 23 | # selectLatestNightlyWith isn't support with mixed toolchains | ||
| 22 | # https://github.com/oxalica/rust-overlay/issues/136 | 24 | # https://github.com/oxalica/rust-overlay/issues/136 |
| 23 | # rust-bin.stable.latest.default | 25 | (lib.hiPrio rust-bin.nightly."2023-09-01".rustfmt) |
| 24 | # nightly for rustfmt | 26 | rust-bin.stable.latest.default |
| 25 | ( | 27 | |
| 26 | rust-bin.selectLatestNightlyWith (toolchain: toolchain.default.override { | ||
| 27 | extensions = [ | ||
| 28 | "rust-src" | ||
| 29 | "rustfmt" | ||
| 30 | "clippy" | ||
| 31 | ]; | ||
| 32 | }) | ||
| 33 | ) | ||
| 34 | ]; | 28 | ]; |
| 35 | 29 | ||
| 36 | buildInputs = [ | 30 | buildInputs = [ |