mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
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:
committed by
github-actions[bot]
parent
970905cec6
commit
eb1813c6fa
@@ -52,4 +52,6 @@ stdenv.mkDerivation ({
|
||||
# Record all build inputs as runtime dependencies
|
||||
export >> $out
|
||||
'';
|
||||
|
||||
preferLocalBuild = true;
|
||||
} // rest)
|
||||
|
||||
Reference in New Issue
Block a user