mkShell: set preferLocalBuild by default

Before this change, `nix develop` would often result in all the
shell's dependencies being copied to a remote builder, only for the
remote builder to run a trivial derivation build. This change makes
`nix develop` much faster on systems with remote builders configured.

(cherry picked from commit c4b83df38a)
This commit is contained in:
Linus Heckemann
2023-02-22 11:53:51 +01:00
committed by github-actions[bot]
parent 970905cec6
commit eb1813c6fa

View File

@@ -52,4 +52,6 @@ stdenv.mkDerivation ({
# Record all build inputs as runtime dependencies
export >> $out
'';
preferLocalBuild = true;
} // rest)