Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2016-08-29 | nix path-info: Add --json flag | Eelco Dolstra | 2 | -0/+354 | |
Also, factor out JSON generation from value-to-json.{cc,hh}, and support producing indented JSON. | |||||
2016-07-21 | Fix assertion failure | Eelco Dolstra | 1 | -1/+1 | |
2016-07-21 | NarInfo::NarInfo(): Ensure that we get a NAR size/hash | Eelco Dolstra | 1 | -0/+1 | |
2016-07-21 | Fix assertion failure in ThreadPool::enqueue() | Eelco Dolstra | 2 | -2/+6 | |
2016-07-13 | FdSink: Restore move constructor/assignment | Shea Levy | 1 | -0/+2 | |
2016-07-13 | Make Buffered{Source,Sink} move-safe | Shea Levy | 2 | -27/+12 | |
2016-07-11 | Modernize AutoCloseFD | Shea Levy | 4 | -54/+42 | |
2016-06-09 | Use O_CLOEXEC in most places | Eelco Dolstra | 3 | -7/+11 | |
2016-06-02 | createTempDir(): Don't do a chown on Linux | Eelco Dolstra | 1 | -0/+2 | |
It's not needed and can cause problems in a user namespace. | |||||
2016-06-02 | Allow setting the state directory as a store parameter | Eelco Dolstra | 1 | -3/+14 | |
E.g. "local?store=/tmp/store&state=/tmp/var". | |||||
2016-05-31 | use $(LIBLZMA_LIBS) instead of -llzma | Dmitry Kalinkin | 1 | -1/+1 | |
This is needed in case of non-standard lzma installation path that will be specified in pkgconfig manifest as extra -L option for LDFLAGS. | |||||
2016-05-04 | Cleanup: Remove singleton() | Eelco Dolstra | 1 | -9/+0 | |
2016-05-04 | Do compression in a sink | Eelco Dolstra | 3 | -92/+186 | |
2016-05-04 | Add a Store::addToStore() variant that accepts a NAR | Eelco Dolstra | 2 | -10/+10 | |
As a side effect, this ensures that signatures are propagated when copying paths between stores. Also refactored import/export to make use of this. | |||||
2016-05-04 | Fix segfault in xz compression/decompression | Eelco Dolstra | 1 | -2/+2 | |
2016-05-04 | Add a copyStorePath() utility function | Eelco Dolstra | 1 | -0/+7 | |
2016-04-29 | Support Git repos in the Nix path | Eelco Dolstra | 2 | -0/+10 | |
E.g. $ nix-build -I nixpkgs=git://github.com/NixOS/nixpkgs '<nixpkgs>' -A hello This is not extremely useful yet because you can't specify a branch/revision. | |||||
2016-04-29 | BinaryCacheStore: Support bzip2 compression | Eelco Dolstra | 2 | -35/+117 | |
2016-04-29 | BinaryCacheStore: Support "none" compression method | Eelco Dolstra | 2 | -6/+29 | |
2016-04-29 | Eliminate the substituter mechanism | Eelco Dolstra | 1 | -0/+12 | |
Substitution is now simply a Store -> Store copy operation, most typically from BinaryCacheStore to LocalStore. | |||||
2016-04-25 | Improved logging abstraction | Eelco Dolstra | 5 | -168/+165 | |
This also gets rid of --log-type, since the nested log type isn't useful in a multi-threaded situation, and nobody cares about the "pretty" log type. | |||||
2016-04-22 | Factor out parallel processing of work items that have dependencies | Eelco Dolstra | 1 | -0/+60 | |
2016-04-22 | ThreadPool: Start doing work as soon as work items are enqueued | Eelco Dolstra | 2 | -59/+84 | |
2016-04-22 | Make compression interruptible | Eelco Dolstra | 1 | -1/+3 | |
2016-04-21 | nix --help: Show short flags | Eelco Dolstra | 2 | -4/+6 | |
2016-04-20 | Cache path info lookups in SQLite | Eelco Dolstra | 4 | -7/+52 | |
This re-implements the binary cache database in C++, allowing it to be used by other Store backends, in particular the S3 backend. | |||||
2016-04-19 | Move path info caching from BinaryCacheStore to Store | Eelco Dolstra | 2 | -0/+12 | |
Caching path info is generally useful. For instance, it speeds up "nix path-info -rS /run/current-system" (i.e. showing the closure sizes of all paths in the closure of the current system) from 5.6s to 0.15s. This also eliminates some APIs like Store::queryDeriver() and Store::queryReferences(). | |||||
2016-04-15 | BinaryCacheStore::readFile(): Return a shared_ptr to a string | Eelco Dolstra | 2 | -4/+6 | |
This allows readFile() to indicate that a file doesn't exist, and might eliminate some large string copying. | |||||
2016-04-08 | Make LocalStore thread-safe | Eelco Dolstra | 1 | -3/+3 | |
Necessary for multi-threaded commands like "nix verify-paths". | |||||
2016-03-31 | Add missing -pthread | Eelco Dolstra | 1 | -1/+1 | |
https://hydra.nixos.org/build/33908385 | |||||
2016-03-29 | Improve SIGINT handling in multi-threaded programs | Eelco Dolstra | 3 | -5/+10 | |
The flag remembering whether an Interrupted exception was thrown is now thread-local. Thus, all threads will (eventually) throw Interrupted. Previously, one thread would throw Interrupted, and then the other threads wouldn't see that they were supposed to quit. | |||||
2016-03-29 | Add "nix verify-paths" command | Eelco Dolstra | 4 | -2/+135 | |
Unlike "nix-store --verify-path", this command verifies signatures in addition to store path contents, is multi-threaded (especially useful when verifying binary caches), and has a progress indicator. Example use: $ nix verify-paths --store https://cache.nixos.org -r $(type -p thunderbird) ... [17/132 checked] checking ‘/nix/store/rawakphadqrqxr6zri2rmnxh03gqkrl3-autogen-5.18.6’ | |||||
2016-03-15 | Fix Darwin build | Eelco Dolstra | 1 | -0/+1 | |
http://hydra.nixos.org/build/33279996 | |||||
2016-03-04 | Eliminate some large string copying | Eelco Dolstra | 2 | -3/+5 | |
2016-03-02 | Fix reading symlinks | Eelco Dolstra | 1 | -1/+1 | |
The st_size field of a symlink doesn't have to be correct, e.g. for /dev/fd symlinks. | |||||
2016-03-02 | FdSource: track number of bytes read | Eelco Dolstra | 2 | -5/+8 | |
2016-02-25 | Merge branch 'master' into new-cli | Eelco Dolstra | 1 | -0/+1 | |
2016-02-25 | Add NAR / Store accessor abstraction | Eelco Dolstra | 1 | -0/+1 | |
This is primary to allow hydra-queue-runner to extract files like "nix-support/hydra-build-products" from NARs in binary caches. | |||||
2016-02-25 | Fix short boolean flags | Eelco Dolstra | 1 | -1/+1 | |
2016-02-25 | Merge branch 'master' into new-cli | Eelco Dolstra | 13 | -97/+515 | |
2016-02-24 | deletePath(): Succeed if path doesn't exist | Eelco Dolstra | 2 | -6/+10 | |
Also makes it robust against concurrent deletions. | |||||
2016-02-24 | BinaryCacheStore: Implement addToStore() | Eelco Dolstra | 2 | -4/+16 | |
So now you can do $ NIX_REMOTE=file:///tmp/binary-cache nix-instantiate '<nixpkgs>' -A hello and lots of other operations. | |||||
2016-02-24 | Typo | Eelco Dolstra | 1 | -2/+2 | |
2016-02-24 | Move BinaryCacheStore / LocalBinaryCacheStore from Hydra | Eelco Dolstra | 1 | -0/+84 | |
So you can now do: $ NIX_REMOTE=file:///tmp/binary-cache nix-store -qR /nix/store/... | |||||
2016-02-24 | std::condition_variable_any -> std::condition_variable | Eelco Dolstra | 2 | -11/+11 | |
The latter is supposed to be more efficient. | |||||
2016-02-24 | C++ templates are just a glorified macro facility | Eelco Dolstra | 1 | -2/+2 | |
2016-02-24 | Remove bad daemon connections from the pool | Eelco Dolstra | 3 | -13/+50 | |
This is necessary for long-running processes like hydra-queue-runner: if a nix-daemon worker is killed, we need to stop reusing that connection. | |||||
2016-02-23 | Pool<T>: Allow a maximum pool size | Eelco Dolstra | 1 | -15/+54 | |
2016-02-23 | RemoteStore: Make thread-safe | Eelco Dolstra | 2 | -0/+180 | |
This allows a RemoteStore object to be used safely from multiple threads concurrently. It will make multiple daemon connections if necessary. Note: pool.hh and sync.hh have been copied from the Hydra source tree. | |||||
2016-02-23 | Move ref<t> into a separate header | Eelco Dolstra | 2 | -59/+69 | |