From a3ff75fd7efa1d0829ee7fd825636be9980da4bf Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Thu, 18 Apr 2024 23:45:00 +0200 Subject: [PATCH] devShells: null out src to avoid nix develop rebuild Whenever src changed, nix develop would internally create a fresh derivation, which it has to try and substitute and then build. Let's not do that. --- flake.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flake.nix b/flake.nix index 5352aced9..d9b0c63b5 100644 --- a/flake.nix +++ b/flake.nix @@ -441,6 +441,9 @@ XDG_DATA_DIRS+=:$out/share ''; + # We use this shell with the local checkout, not unpackPhase. + src = null; + env = { # For `make format`, to work without installing pre-commit _NIX_PRE_COMMIT_HOOKS_CONFIG =