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.
This commit is contained in:
Linus Heckemann 2023-02-22 11:53:51 +01:00
parent 545c7a31e5
commit c4b83df38a

View File

@ -53,4 +53,6 @@ stdenv.mkDerivation ({
export;
} >> "$out"
'';
preferLocalBuild = true;
} // rest)