aboutsummaryrefslogtreecommitdiff
path: root/src/libutil
AgeCommit message (Collapse)Author
2016-03-15Fix Darwin buildEelco Dolstra
http://hydra.nixos.org/build/33279996
2016-03-04Eliminate some large string copyingEelco Dolstra
2016-03-02Fix reading symlinksEelco Dolstra
The st_size field of a symlink doesn't have to be correct, e.g. for /dev/fd symlinks.
2016-03-02FdSource: track number of bytes readEelco Dolstra
2016-02-25Merge branch 'master' into new-cliEelco Dolstra
2016-02-25Add NAR / Store accessor abstractionEelco Dolstra
This is primary to allow hydra-queue-runner to extract files like "nix-support/hydra-build-products" from NARs in binary caches.
2016-02-25Fix short boolean flagsEelco Dolstra
2016-02-25Merge branch 'master' into new-cliEelco Dolstra
2016-02-24deletePath(): Succeed if path doesn't existEelco Dolstra
Also makes it robust against concurrent deletions.
2016-02-24BinaryCacheStore: Implement addToStore()Eelco Dolstra
So now you can do $ NIX_REMOTE=file:///tmp/binary-cache nix-instantiate '<nixpkgs>' -A hello and lots of other operations.
2016-02-24TypoEelco Dolstra
2016-02-24Move BinaryCacheStore / LocalBinaryCacheStore from HydraEelco Dolstra
So you can now do: $ NIX_REMOTE=file:///tmp/binary-cache nix-store -qR /nix/store/...
2016-02-24std::condition_variable_any -> std::condition_variableEelco Dolstra
The latter is supposed to be more efficient.
2016-02-24C++ templates are just a glorified macro facilityEelco Dolstra
2016-02-24Remove bad daemon connections from the poolEelco Dolstra
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-23Pool<T>: Allow a maximum pool sizeEelco Dolstra
2016-02-23RemoteStore: Make thread-safeEelco Dolstra
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-23Move ref<t> into a separate headerEelco Dolstra
2016-02-15Add xz compression functionEelco Dolstra
This is used by the Hydra queue runner, but since it may also be useful for the C++ rewrite of nix-push, I'm putting it here.
2016-02-15decompressXZ: Ensure that lzma_end() is calledEelco Dolstra
Otherwise we might leak memory.
2016-02-12Merge pull request #762 from ctheune/ctheune-floatsEelco Dolstra
Implement floats
2016-02-11ref<T>: Add cast operatorEelco Dolstra
2016-02-09Start of new Nix command-line interfaceEelco Dolstra
2016-02-09New command line parsing infrastructureEelco Dolstra
2016-02-04Eliminate the "store" global variableEelco Dolstra
Also, move a few free-standing functions into StoreAPI and Derivation. Also, introduce a non-nullable smart pointer, ref<T>, which is just a wrapper around std::shared_ptr ensuring that the pointer is never null. (For reference-counted values, this is better than passing a "T&", because the latter doesn't maintain the refcount. Usually, the caller will have a shared_ptr keeping the value alive, but that's not always the case, e.g., when passing a reference to a std::thread via std::bind.)
2016-01-27Define HashType's size to allow it to be forward-declaredEelco Dolstra
2016-01-27TriviaEelco Dolstra
2016-01-27Make hashLength32() a method of HashEelco Dolstra
2016-01-20string2Int: Barf on negative numbers for unsigned typesEelco Dolstra
2016-01-05Fix compilationEelco Dolstra
2016-01-05Merge pull request #685 from vizanto/masterEelco Dolstra
POSIX compliant directory access (fixes build on Solaris)
2016-01-05Fixed unresolved 'BUFSIZ'FrankHB
`BUFSIZ` is defined in header `<cstdio>`.
2016-01-05First hit at providing support for floats in the language.Christian Theune
2015-12-10Build sandbox support etc. unconditionally on LinuxEelco Dolstra
Also, use "#if __APPLE__" instead of "#if SANDBOX_ENABLED" to prevent ambiguity.
2015-11-25Use DT_UNKNOWN when dirent d_type extension is not supported.Danny Wilson
edolstra: “…since callers of readDirectory have to handle the possibility of DT_UNKNOWN anyway, and we don't want to do a stat call for every directory entry unless it's really needed.”
2015-11-16Default arguments belong at declaration, not definitionShea Levy
2015-11-16Fix copy-paste errorShea Levy
2015-11-16AutoDelete: Add default constructor with deletion disabledShea Levy
2015-11-09Fix namespace issueEelco Dolstra
2015-11-07Fix build on SolarisDanny Wilson
d_type is not part of the POSIX spec unfortunately.
2015-11-04Support SHA-512 hashesEelco Dolstra
Fixes #679. Note: on x86_64, SHA-512 is considerably faster than SHA-256 (198 MB/s versus 131 MB/s).
2015-11-04Require OpenSSLEelco Dolstra
2015-10-30<nix/fetchurl.nix>: Support xz-compressed NARsEelco Dolstra
2015-10-29int2String() -> std::to_string()Eelco Dolstra
2015-10-21revert libutil changeJude Taylor
2015-10-21make sandbox builds more permissiveJude Taylor
2015-10-01nix-prefetch-url: Rewrite in C++Eelco Dolstra
2015-09-18Shut up clang warningsEelco Dolstra
2015-09-03Implement buildDerivation() via the daemonEelco Dolstra
2015-08-07baseNameOf: Enhance `basename` compatibilityKirill Elagin
* If the path ends with a slash, drop it. * If the remaining path doesn’t contain slashes, just return it. Fixes #574.