aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-12-10EvalState::callFunction(): Make FunctionCallTrace use less stack spaceEelco 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-09Remove UserLock self-lock checkEelco Dolstra
This is no longer needed since we're not using POSIX locks anymore.
2019-12-05Shut up clang warningEelco Dolstra
(cherry picked from commit 3392f1b77869269580b58e4931b7a79f44799ce0)
2019-12-05nix doctor: Fix typoEelco Dolstra
(cherry picked from commit 96c6b08ed7f99be84cb1816515a368392d19dbb5)
2019-12-05Show hash mismatch warnings in SRI formatEelco Dolstra
(cherry picked from commit 63c5c91cc053cbc1fcb8d3fe71c41142c9f51bfa)
2019-12-05Move #includeEelco Dolstra
(cherry picked from commit 8beedd44861d1fe7208609ee8d231ca1c02dedf6)
2019-12-05Bindings: Add convenience method for requiring an attributeEelco Dolstra
(cherry picked from commit fb692e5f7b34def8cf590298036ab63e40747062)
2019-12-05Bindings::get(): Add convenience methodEelco Dolstra
This allows writing attribute lookups as if (auto name = value.attrs->get(state.sName)) ... (cherry picked from commit f216c76c56cdffb5214d074a7d44812843dd174f)
2019-12-05Fix precompiled-headers generationEelco Dolstra
It's now regenerated when util.hh changes, and is ordered after config.h to fix a race.
2019-12-05Initialize Command::_nameEelco Dolstra
(cherry picked from commit d0a769cb061a13ad880c76e5ea69a76150439853)
2019-12-05Make subcommand construction in MultiCommand lazyEelco Dolstra
(cherry picked from commit a0de58f471c9087d8e6cc60a6078f9940a125b15)
2019-12-05Move Command and MultiCommand to libutilEelco Dolstra
(cherry picked from commit f70434b1fbbdb0e188718f0c55a8156a7aa08744)
2019-12-05MultiCommand: Simplify constructionEelco Dolstra
(cherry picked from commit 15a16e5c05d547ec07170df2392263e5e891447b)
2019-12-05Eliminate more pass-by-value in variadic callsEelco Dolstra
2019-12-05Revert "Make fmt() non-recursive"Eelco Dolstra
This reverts commit 2b761d5f50b7dc17dc55c31980c2253c37b3c920. Also *really* make fmt() take arguments by reference.
2019-12-05fmt(): Pass arguments by reference rather than by valueEelco Dolstra
2019-12-04Merge pull request #3255 from Profpatsch/doc-manual-allowSubstitutes-add-noteEelco Dolstra
doc/manual: add note to `allowSubstitutes` advanced attribute
2019-12-03Disable recursive Nix test on macOSEelco Dolstra
https://hydra.nixos.org/build/107724274
2019-12-03doc/manual: add ids to the advanced attribute definitionsProfpatsch
This makes it possible to reference single attribute definitions, for pointing people to their exact definition.
2019-12-03doc/manual: add note to `allowSubstitutes` advanced attributeProfpatsch
2019-12-02Merge branch 'pkg-config-static' of https://github.com/matthewbauer/nixEelco Dolstra
2019-12-02Merge remote-tracking branch 'origin/recursive-nix'Eelco Dolstra
2019-11-30Merge pull request #3252 from bwignall/typoGraham Christensen
Fix typos
2019-11-30Fix typosBrian Wignall
2019-11-29Merge pull request #2748 from edolstra/rustEelco Dolstra
Make nix/unpack-channel.nix a builtin builder
2019-11-29Make libnixrust a dynamic libraryEelco Dolstra
This is a hack to fix the build on macOS, which was failing because libnixrust.a contains compiler builtins that clash with libclang_rt.osx.a. There's probably a better solution... https://hydra.nixos.org/build/107473280
2019-11-28Remove RPM spec fileEelco Dolstra
Closes #3225. Closes #3226.
2019-11-28Remove builtins.valueSizeEelco Dolstra
Fixes #3246.
2019-11-27make clean: Delete nix-rust/targetEelco Dolstra
2019-11-27When OPTIMIZE=0, build rust code in debug modeEelco Dolstra
2019-11-27Fix segfault on i686-linuxEelco Dolstra
https://hydra.nixos.org/build/107467517 Seems that on i686-linux, gcc and rustc disagree on how to return 1-word structs: gcc has the caller pass a pointer to the result, while rustc has the callee return the result in a register. Work around this by using a bare pointer.
2019-11-27Fix macOS buildEelco Dolstra
https://hydra.nixos.org/build/107466992
2019-11-26Update Cargo.lockEelco Dolstra
2019-11-26-Z offline -> --offlineEelco Dolstra
2019-11-26Drop remaining uses of external "tar"Eelco Dolstra
Also, fetchGit now runs in O(1) memory since we pipe the output of 'git archive' directly into unpackTarball() (rather than first reading it all into memory).
2019-11-26Ignore tar header entriesEelco Dolstra
In particular, these are emitted by 'git archive' (in fetchGit).
2019-11-26Move code aroundEelco Dolstra
2019-11-26Shut up some rust warningsEelco Dolstra
2019-11-26Move code aroundEelco Dolstra
2019-11-26More Rust FFI adventuresEelco Dolstra
We can now convert Rust Errors to C++ exceptions. At the Rust->C++ FFI boundary, Result<T, Error> will cause Error to be converted to and thrown as a C++ exception.
2019-11-26Rust cleanupEelco Dolstra
2019-11-26Only pass '-Z offline' to cargo if we have a vendor directoryEelco Dolstra
2019-11-26Reduce the size of the vendor directory by removing some winapi cruftEelco Dolstra
2019-11-26Include cargo dependencies in the Nix tarballEelco Dolstra
2019-11-26Update Rust dependenciesEelco Dolstra
2019-11-26Clean up the configure scriptEelco Dolstra
2019-11-26Remove most of <nix/config.nix>Eelco Dolstra
This is no longer needed.
2019-11-26Make <nix/unpack-channel.nix> a builtin builderEelco Dolstra
This was the last function using a shell script, so this allows us to get rid of tar, coreutils, bash etc.
2019-11-26Enable Rust code to call C++ Source objectsEelco Dolstra
2019-11-26Add some Rust codeEelco Dolstra