Skip to content

Commit 959dfb3

Browse files
committed
nix: disable incremental builds for the dev shell
Latest rustc nightlies seem to have broken incremental compilation [0]. I apparently have the worst luck in this department, as I've gotten multiple ICEs within the last few hours alone. So, I'm putting future me out of her misery. [0]: rust-lang/rust#139110
1 parent 4bd6dbe commit 959dfb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flake.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
env = {
9797
LIBSSH2_SYS_USE_PKG_CONFIG = "1";
9898
RUST_BACKTRACE = 1;
99+
CARGO_INCREMENTAL = "0"; # https://github.com/rust-lang/rust/issues/139110
99100
};
100101
in {
101102
formatter = pkgs.alejandra;
@@ -124,7 +125,6 @@
124125
// {
125126
RUSTFLAGS = pkgs.lib.optionalString pkgs.stdenv.isLinux "-C link-arg=-fuse-ld=mold";
126127
NIX_JJ_GIT_HASH = self.rev or "";
127-
CARGO_INCREMENTAL = "0";
128128
};
129129

130130
postInstall = ''

0 commit comments

Comments
 (0)