mirror of
https://github.com/NixOS/nix
synced 2025-06-28 05:21:16 +02:00
Support arbitrary store URIs in nix.machines
For backwards compatibility, if the URI is just a hostname, ssh:// (i.e. LegacySSHStore) is prepended automatically. Also, all fields except the URI are now optional. For example, this is a valid nix.machines file: local?root=/tmp/nix This is useful for testing the remote build machinery since you don't have to mess around with ssh.
This commit is contained in:
parent
3e4bdfedee
commit
031d70e500
4 changed files with 66 additions and 46 deletions
|
@ -1862,6 +1862,7 @@ void DerivationGoal::startBuilder()
|
|||
dirsInChroot[i] = r;
|
||||
else {
|
||||
Path p = chrootRootDir + i;
|
||||
debug("linking ‘%1%’ to ‘%2%’", p, r);
|
||||
if (link(r.c_str(), p.c_str()) == -1) {
|
||||
/* Hard-linking fails if we exceed the maximum
|
||||
link count on a file (e.g. 32000 of ext3),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue