aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-12-13Merge pull request #5761 from yorickvP/fix-5741Eelco Dolstra
extract_archive: fix "Hard-link target '...'" error
2021-12-13Merge pull request #5763 from yorickvP/evalstate-rootEelco Dolstra
EvalCommand::getEvalState: use gc tracable allocator for EvalState (fix segfault)
2021-12-11EvalCommand::getEvalState: use gc tracable allocator for EvalStateYorick van Pelt
2021-12-10Merge pull request #5760 from helsinki-systems/fix/doc-remote-buildsEelco Dolstra
doc: Fix command for distributed builds
2021-12-10extract_archive: fix "Hard-link target '...'" errorYorick van Pelt
Fixes #5741
2021-12-10extract_archive: use copy_pathname instead of set_pathname.Yorick van Pelt
Libarchive documentation mentions that archive_entry_set_pathname expects us to keep the passed string alive, which we don't.
2021-12-10Ignore system.nfs4_aclEelco Dolstra
Closes #1584.
2021-12-10Merge branch 'master' of https://github.com/MagicRB/nixEelco Dolstra
2021-12-10doc: Fix command for distributed buildsJanne Heß
We also need to build impurely or the <nixpkgs> lookup will not work.
2021-12-09Merge pull request #5752 from NixOS/5706-repl-reassignEelco Dolstra
Properly take the last assignment in the REPL
2021-12-09Merge pull request #5757 from am-on/fix-broken-nixos-channels-linkEelco Dolstra
Fix link to nixos channel
2021-12-09Fix link to nixos channelAmon Stopinšek
The old link returned 404 errror.
2021-12-09Properly take the last assignment in the REPLregnat
When a variable is assigned in the REPL, make sure to remove any possible reference to the old one so that we correctly pick the new one afterwards Fix #5706
2021-12-09Merge pull request #5695 from obsidiansystems/tidy-loggingEelco Dolstra
Tidy up the logging
2021-12-08Merge pull request #5521 from abathur/clearly_mark_validation_stepDomen Kožar
installer: clarify starting assumption task
2021-12-08Merge pull request #5489 from abathur/fix_macos_install_vim_pluginsDomen Kožar
darwin-install: fix break from bad vim plugins
2021-12-07darwin-install: fix break from bad vim pluginsTravis A. Everett
2021-12-07Merge pull request #5730 from abathur/darwin_document_fstab_settingsEelco Dolstra
document some darwin mount settings
2021-12-07Tweak warningEelco Dolstra
2021-12-07Merge remote-tracking branch 'origin/5712-ca-drvs-with-old-daemon'Eelco Dolstra
2021-12-07Inline fileEelco Dolstra
2021-12-07Merge branch 'balsoft/nix-repl-log' of https://github.com/tweag/nixEelco Dolstra
2021-12-06Merge pull request #5737 from jtojnar/manual-linksEelco Dolstra
Update manual links
2021-12-06Update manual linksJan Tojnar
Fixes: https://github.com/NixOS/nixos-homepage/issues/762
2021-12-06nix repl: add :logAlexander Bantyev
Add a :log command that shows logs for a derivation. Closes https://github.com/NixOS/nix/issues/3504 Co-authored-by: Taeer Bar-Yam <taeer@bar-yam.me>
2021-12-06RunPager: restore stdout upon pager exitAlexander Bantyev
Before this change, stdout was closed after the pager exits. This is fine for non-interactive commands where we want to exit right after the pager exits anyways, but for interactive things (e.g. nix repl) this breaks the output after we quit the pager. Keep the initial stdout fd as part of RunPager, and restore it in RunPager::~RunPager using dup2.
2021-12-06Change version to X.Y.ZEelco Dolstra
Fixes #5732.
2021-12-06Fallback when the daemon is too old for CA derivationsregnat
Fix #5712
2021-12-06Merge pull request #5726 from azuwis/masterEelco Dolstra
launchd: Set NumberOfFiles to 4096
2021-12-04document some darwin mount settingsTravis A. Everett
2021-12-04launchd: Set NumberOfFiles to 4096Zhong Jianxin
The default maxfiles on macOS 11 and macOS 12 is 256, which is too low for nix to work: ``` $ launchctl limit maxfiles maxfiles 256 unlimited ``` Set NumberOfFiles of nix-daemon to 4096 to avoid `Too many open files` error.
2021-12-03Merge pull request #5715 from Infinisil/groupBy-primopEelco Dolstra
Introduce `builtins.groupBy` primop
2021-12-03Merge pull request #5718 from rutrum/masterEelco Dolstra
Fix docker command
2021-12-02Fix docker commandDavid Purdum
`docker -ti run nixos` does not run on docker version 20.10.7 (my machine). This fixes it to read `docker run -ti nixos`.
2021-12-02Introduce builtins.groupBy primopSilvan Mosberger
This function is very useful in nixpkgs, but its implementation in Nix itself is rather slow due to it requiring a lot of attribute set and list appends.
2021-12-02Merge pull request #5713 from tweag/balsoft/another-follows-bugfixEelco Dolstra
Flakes: computeLocks: pass correct LockParent when reusing oldLock
2021-12-02Merge pull request #5708 from trofi/fix-build-on-gcc-11Eelco Dolstra
src/libutil/util.hh: fix build on gcc-11
2021-12-02Merge pull request #5709 from nrdxp/fix-subflake-path-checkEelco Dolstra
Fix parent path check boundary
2021-12-02Merge pull request #5711 from abathur/fix_stray_relative_diskutilEelco Dolstra
darwin-install: nail down diskutil invocations
2021-12-02Flakes: computeLocks: pass correct LockParent when reusing oldLockAlexander Bantyev
Previously, when we were attempting to reuse the old lockfile information in the computeLocks function, we have passed the parent of the current input to the next computeLocks call. This was incorrect, since the follows are resolved relative to the parent. This caused issues when we tried to reuse oldLock but couldn't for some reason (read: mustRefetch is true), in that case the follows were resolved incorrectly. Fix this by passing the correct parent, and adding some tests to prevent this particular regression from happening again. Closes https://github.com/NixOS/nix/issues/5697
2021-12-01darwin-install: nail down diskutilTravis A. Everett
Same purpose as de9efa3b79af7886fcf2a67b6ce97d4f96a57421 For some unclear reason, we get occasional reports from people who do not have /usr/sbin on their PATH that the installer fails. It's a standard part of the PATH, so I have no clue what they're doing to remove it--but it's also fairly cheap to avoid.
2021-12-01Fix parent path check boundaryDavid Arnold
- Previous to this commit the boundary was exclusive of the top level flake. - This is wrong since the top level flake is still a valid relative reference. - Now, the check boundary is inclusive of the top level flake. Signed-off-by: Timothy DeHerrera <tim.deh@pm.me>
2021-12-01src/libutil/util.hh: fix build on gcc-11Sergei Trofimovich
Due to missing <atomic> declaration the build fails as: src/libutil/util.hh:350:24: error: no match for 'operator||' (operand types are 'std::atomic<bool>' and 'bool') 350 | if (_isInterrupted || (interruptCheck && interruptCheck())) | ~~~~~~~~~~~~~~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | std::atomic<bool> bool
2021-12-01Merge branch 'nix-env-install-suggestions' of https://github.com/tweag/nixEelco Dolstra
2021-12-01Merge pull request #5696 from obsidiansystems/fix-5299Eelco Dolstra
Fix #5299 and remove uncesssary unbounded buffer
2021-12-01Merge pull request #5599 from fzakaria/faridzakaria/fix-progress-bar-leakThéophane Hufschmitt
Fix heap use after free in progress-bar.cc
2021-11-30Fix #5299John Ericson
No matter what, we need to resize the buffer to not have any scratch space after we do the `read`. In the end of file case, `got` will be 0 from it's initial value. Before, we forgot to resize in the EOF case with the break. Yes, we know we didn't recieve any data in that case, but we still have the scatch space to undo. Co-Authored-By: Will Fancher <Will.Fancher@Obsidian.Systems>
2021-11-30Push wopAddToStore old style stream adapters into smaller scopesJohn Ericson
This doesn't fix the bug, but makes the code less difficult to read. Also improve the comments, now that it is clear what part is needed in each code path.
2021-11-30Nix daemon stream old wopAddToStoreJohn Ericson
No more buffering in string.
2021-11-30Tidy up the loggingJohn Ericson
Use the macros more, so we properly skip work when the log level excludes. Also log the daemon operation number on the daemon side.