- Jul 19, 2013
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
This allows scripts to distinguish between a real build and a Nix shell.
-
Eelco Dolstra authored
Setting $NIX_STORE causes the purity checks in gcc/ld-wrapper to kick in, so that's why we unset $NIX_ENFORCE_PURITY.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
This causes the environment to be (almost) cleared, thus giving a shell that more closely resembled the actual Nix derivation.
-
- Jul 18, 2013
-
-
Eelco Dolstra authored
This reverts commit 69b8f998. The timeout should be enforced remotely. Otherwise, if the garbage collector is running either locally or remotely, if will block the build or closure copying for some time. If the garbage collector takes too long, the build may time out, which is not what we want. Also, on heavily loaded systems, copying large paths to and from the remote machine can take a long time, also potentially resulting in a timeout.
-
- Jul 15, 2013
-
-
Shea Levy authored
mount(2) with MS_BIND allows mounting a regular file on top of a regular file, so there's no reason to only bind directories. This allows finer control over just which files are and aren't included in the chroot without having to build symlink trees or the like. Signed-off-by:
Shea Levy <shea@shealevy.com>
-
- Jul 12, 2013
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
Only indirect roots (symlinks to symlinks to the Nix store) are now supported.
-
Gergely Risko authored
-
Domen Kožar authored
-
- Jul 11, 2013
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
Fixes #113. Fixes #131.
-
Eelco Dolstra authored
This ensures that not just environment variables are set, but also shell functions such as unpackPhase, configurePhase and so on.
-
- Jul 07, 2013
-
-
Ludovic Courtès authored
-
- Jul 03, 2013
-
-
Eelco Dolstra authored
-
- Jul 01, 2013
-
-
Eelco Dolstra authored
Issue NixOS/hydra#102.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
- Jun 20, 2013
-
-
Eelco Dolstra authored
With C++ std::map, doing a comparison like ‘map["foo"] == ...’ has the side-effect of adding a mapping from "foo" to the empty string if "foo" doesn't exist in the map. So we ended up setting some environment variables by accident.
-
Eelco Dolstra authored
In particular this means that "trivial" derivations such as writeText are not substituted, reducing the number of GET requests to the binary cache by about 200 on a typical NixOS configuration.
-
Eelco Dolstra authored
Common operations like instantiating a NixOS system config no longer fitted in 8192 pages, leading to more fsyncs. So increase this limit.
-
Eelco Dolstra authored
This substituter basically cannot work reliably since we switched to SQLite, since SQLite databases may need write access to open them even just for reading (and in WAL mode they always do).
-
Eelco Dolstra authored
For instance, it's pointless to keep copy-from-other-stores running if there are no other stores, or download-using-manifests if there are no manifests. This also speeds things up because we don't send queries to those substituters.
-
- Jun 17, 2013
-
-
Eelco Dolstra authored
-
- Jun 13, 2013
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
Before calling dumpPath(), we have to make sure the files are owned by the build user. Otherwise, the build could contain a hard link to (say) /etc/shadow, which would then be read by the daemon and rewritten as a world-readable file. This only affects systems that don't have hard link restrictions enabled.
-
Eelco Dolstra authored
The assertion in canonicalisePathMetaData() failed because the ownership of the path already changed due to the hash rewriting. The solution is not to check the ownership of rewritten paths. Issue #122.
-
Eelco Dolstra authored
Issue #122.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
Otherwise subsequent invocations of "--repair" will keep rebuilding the path. This only happens if the path content differs between builds (e.g. due to timestamps).
-
- Jun 12, 2013
-
-
Eelco Dolstra authored
Fixes #127.
-
- Jun 07, 2013
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
Thus passing ‘--option debug-subst 1’ allows daemon users to turn on debug info and see what the substituter is doing.
-
Eelco Dolstra authored
Previously, if a binary cache is hanging/unreachable/slow, download-from-binary-cache.pl would also hang without any indication to the user. Now, if fetching a URL takes more than 5 seconds, it will print a message to that effect.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
This greatly reduces the number of system calls.
-
- Jun 05, 2013
-
-
Eelco Dolstra authored
Fixes the error "DBD::SQLite::db do failed: column url is not unique".
-