Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-12-14 | Fix InstallableCommand | Eelco Dolstra | |
2019-12-14 | Fix 'nix profile' | Eelco Dolstra | |
2019-12-12 | Temporarily revert to using 'tar' until we have gzip support | Eelco Dolstra | |
2019-12-11 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2019-12-10 | Speed up StorePath::to_string() | Eelco Dolstra | |
1.81% -> 0.56% | |||
2019-12-10 | Speed up base32::decode() | Eelco Dolstra | |
From 1.03% to 0.19% of the runtime of 'nix-instantiate "<nixpkgs>" -A texlive.combined.scheme-full --dry-run'. | |||
2019-12-10 | Make the Store API more type-safe | Eelco Dolstra | |
Most functions now take a StorePath argument rather than a Path (which is just an alias for std::string). The StorePath constructor ensures that the path is syntactically correct (i.e. it looks like <store-dir>/<base32-hash>-<name>). Similarly, functions like buildPaths() now take a StorePathWithOutputs, rather than abusing Path by adding a '!<outputs>' suffix. Note that the StorePath type is implemented in Rust. This involves some hackery to allow Rust values to be used directly in C++, via a helper type whose destructor calls the Rust type's drop() function. The main issue is the dynamic nature of C++ move semantics: after we have moved a Rust value, we should not call the drop function on the original value. So when we move a value, we set the original value to bitwise zero, and the destructor only calls drop() if the value is not bitwise zero. This should be sufficient for most types. Also lots of minor cleanups to the C++ API to make it more modern (e.g. using std::optional and std::string_view in some places). | |||
2019-12-10 | Add StorePath tests | Eelco Dolstra | |
2019-12-10 | Shut up about deprecated functions | Eelco Dolstra | |
2019-12-10 | Shut up warnings | Eelco Dolstra | |
2019-12-10 | Use hyper directly instead of reqwest | Eelco Dolstra | |
2019-12-10 | Update to async/await-enabled tokio | Eelco Dolstra | |
2019-12-10 | Add NAR parser | Eelco Dolstra | |
2019-12-10 | StorePath improvements | Eelco Dolstra | |
2019-12-10 | Add base32 encoder/decoder | Eelco Dolstra | |
2019-12-10 | Move stuff around | Eelco Dolstra | |
2019-12-10 | Drop some dependencies | Eelco Dolstra | |
2019-12-10 | Use rustls | Eelco Dolstra | |
In particular, this enables HTTP/2 support in reqwest, which is a lot more efficient. | |||
2019-12-10 | Basic BinaryCacheStore implementation using async Rust | Eelco Dolstra | |
2019-12-10 | EvalState::callFunction(): Make FunctionCallTrace use less stack space | Eelco Dolstra | |
The FunctionCallTrace object consumes a few hundred bytes of stack space, even when tracing is disabled. This was causing stack overflows: $ nix-instantiate '<nixpkgs> -A texlive.combined.scheme-full --dry-run error: stack overflow (possible infinite recursion) This is with the default stack size of 8 MiB. Putting the object on the heap reduces stack usage to < 5 MiB. | |||
2019-12-09 | Remove UserLock self-lock check | Eelco Dolstra | |
This is no longer needed since we're not using POSIX locks anymore. | |||
2019-12-05 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2019-12-05 | Shut up clang warning | Eelco Dolstra | |
(cherry picked from commit 3392f1b77869269580b58e4931b7a79f44799ce0) | |||
2019-12-05 | nix doctor: Fix typo | Eelco Dolstra | |
(cherry picked from commit 96c6b08ed7f99be84cb1816515a368392d19dbb5) | |||
2019-12-05 | Typo | Eelco Dolstra | |
2019-12-05 | Show hash mismatch warnings in SRI format | Eelco Dolstra | |
(cherry picked from commit 63c5c91cc053cbc1fcb8d3fe71c41142c9f51bfa) | |||
2019-12-05 | Move #include | Eelco Dolstra | |
(cherry picked from commit 8beedd44861d1fe7208609ee8d231ca1c02dedf6) | |||
2019-12-05 | Bindings: Add convenience method for requiring an attribute | Eelco Dolstra | |
(cherry picked from commit fb692e5f7b34def8cf590298036ab63e40747062) | |||
2019-12-05 | Bindings::get(): Add convenience method | Eelco Dolstra | |
This allows writing attribute lookups as if (auto name = value.attrs->get(state.sName)) ... (cherry picked from commit f216c76c56cdffb5214d074a7d44812843dd174f) | |||
2019-12-05 | Fix precompiled-headers generation | Eelco Dolstra | |
It's now regenerated when util.hh changes, and is ordered after config.h to fix a race. | |||
2019-12-05 | Initialize Command::_name | Eelco Dolstra | |
(cherry picked from commit d0a769cb061a13ad880c76e5ea69a76150439853) | |||
2019-12-05 | Make subcommand construction in MultiCommand lazy | Eelco Dolstra | |
(cherry picked from commit a0de58f471c9087d8e6cc60a6078f9940a125b15) | |||
2019-12-05 | Move Command and MultiCommand to libutil | Eelco Dolstra | |
(cherry picked from commit f70434b1fbbdb0e188718f0c55a8156a7aa08744) | |||
2019-12-05 | MultiCommand: Simplify construction | Eelco Dolstra | |
(cherry picked from commit 15a16e5c05d547ec07170df2392263e5e891447b) | |||
2019-12-05 | Eliminate more pass-by-value in variadic calls | Eelco Dolstra | |
2019-12-05 | Revert "Make fmt() non-recursive" | Eelco Dolstra | |
This reverts commit 2b761d5f50b7dc17dc55c31980c2253c37b3c920. Also *really* make fmt() take arguments by reference. | |||
2019-12-05 | fmt(): Pass arguments by reference rather than by value | Eelco Dolstra | |
2019-12-04 | Merge pull request #3255 from Profpatsch/doc-manual-allowSubstitutes-add-note | Eelco Dolstra | |
doc/manual: add note to `allowSubstitutes` advanced attribute | |||
2019-12-04 | Fix evaluation | Eelco Dolstra | |
2019-12-04 | Fix macOS build | Eelco Dolstra | |
https://hydra.nixos.org/build/107716759 | |||
2019-12-04 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2019-12-03 | Disable recursive Nix test on macOS | Eelco Dolstra | |
https://hydra.nixos.org/build/107724274 | |||
2019-12-03 | doc/manual: add ids to the advanced attribute definitions | Profpatsch | |
This makes it possible to reference single attribute definitions, for pointing people to their exact definition. | |||
2019-12-03 | doc/manual: add note to `allowSubstitutes` advanced attribute | Profpatsch | |
2019-12-02 | nix: Add --refresh as an alias for --tarball-ttl 0 | Eelco Dolstra | |
2019-12-02 | Merge branch 'pkg-config-static' of https://github.com/matthewbauer/nix | Eelco Dolstra | |
2019-12-02 | Merge branch 'run-environment' of https://github.com/mkenigs/nix into flakes | Eelco Dolstra | |
2019-12-02 | Merge remote-tracking branch 'origin/recursive-nix' | Eelco Dolstra | |
2019-12-01 | typo | matthew | |
2019-11-30 | Merge pull request #3252 from bwignall/typo | Graham Christensen | |
Fix typos |