aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-06-23Merge pull request #6708 from edolstra/run-static-testsEelco Dolstra
Enable tests for nix-static
2022-06-22Merge pull request #6707 from edolstra/fix-incremental-staticEelco Dolstra
Fix incremental static builds
2022-06-22Enable/fix tests in nix-staticEelco Dolstra
pkgsStatic is apparently considered a cross environment, so checkPhase and installCheckPhase are disabled even when we ask for them.
2022-06-22Fix incremental static buildsEelco Dolstra
$? refers to the object files that are newer, so the resulting file would lack all the older object files.
2022-06-22StyleEelco Dolstra
2022-06-21Merge pull request #6695 from afishhh/search-fix-excludeEelco Dolstra
Fix arity of `--exclude` flag in `nix search`
2022-06-20Merge pull request #6676 from ↵Théophane Hufschmitt
virusdave/dnicponski/scratch/swap_homedir_check_master Verify this if `$HOME` exists, it is owned by current user in `getHome()`
2022-06-20Add another test for `--exclude` in `nix search`Fishhh
2022-06-20Fix arity of `--exclude` flag in `nix search`Fishhh
Due to incorrectly using the Handler(vector<string>*) constructor the `--exclude` flag would swallow all proceeding arguments instead of just one.
2022-06-17Verify `$HOME` is owned by current user in `getHome()`, if it exists.Dave Nicponski
Useful because a default `sudo` on darwin doesn't clear `$HOME`, so things like `sudo nix-channel --list` will surprisingly return the USER'S channels, rather than `root`'s. Other counterintuitive outcomes can be seen in this PR description: https://github.com/NixOS/nix/pull/6622
2022-06-16Merge pull request #6620 from maralorn/fix-print-missingThéophane Hufschmitt
respect print-missing variable in new-style build command
2022-06-15Merge pull request #6615 from WhyNotHugo/man-improvementsThéophane Hufschmitt
Add disambiguation to man page
2022-06-14Merge pull request #6662 from tweag/stiky-non-flake-overridesEelco Dolstra
flake.cc: Make non-flake overrides sticky
2022-06-14Add disambiguation to man pageHugo Osvaldo Barrera
This should help future lost newcomers like myself understand where to find the docs for both of these commands and how they differ.
2022-06-13flake.cc: Make non-flake overrides stickyAlexander Bantyev
Overrides for inputs with flake=false were non-sticky, since they changed the `original` in `flake.lock`. This fixes it, by using the same locked original for both flake and non-flake inputs.
2022-06-13Merge pull request #6619 from Jonpez2/patch-1Eelco Dolstra
Add security.csm to ignored-acls
2022-06-13Merge pull request #6027 from Ma27/pure-replEelco Dolstra
repl: `--option pure-eval true` actually enables pure eval mode
2022-06-13Merge pull request #6634 from lovesegfault/fix-getgrouplistEelco Dolstra
fix(libstore/lock): support users that belong to more than 10 groups
2022-06-13Merge pull request #6639 from Artturin/checkseEelco Dolstra
install-multi-user: check if selinux is enabled and if it is then abort
2022-06-13Merge pull request #6648 from andersk/missing-rethrowEelco Dolstra
Add missing rethrows in conditional exception handlers
2022-06-13Merge pull request #6651 from ncfavier/nix-build-stop-loggerThéophane Hufschmitt
nix-build: stop logger when appropriate
2022-06-13Merge pull request #6653 from Misterio77/readd-sourcehut-regex-matchingThéophane Hufschmitt
fix sourcehut brach/tag resolving regression
2022-06-11fix sourcehut brach/tag resolving regressionGabriel Fontes
nixos/nix#6290 introduced a regex pattern to account for tags when resolving sourcehut refs. nixos/nix#4638 reafactored the code, accidentally treating the pattern as a regular string, causing all non-HEAD ref resolving to break. This fixes the regression and adds more test cases to avoid future breakage.
2022-06-11nix-build: stop logger when appropriateNaïm Favier
Reverts b944b588fa280b0555b8269c0f6d097352f8716f in `nix-build.cc`.
2022-06-11Merge pull request #6646 from YorikSar/file-impure-docThéophane Hufschmitt
Mention that -f implies --impure for eval in docs
2022-06-10Add missing rethrows in conditional exception handlersAnders Kaseorg
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-06-10Mention that -f implies --impure for eval in docsYuriy Taraday
Right now this is not mentioned anywhere and it is unexpected.
2022-06-10Merge pull request #6643 from ncfavier/fix-git-againThéophane Hufschmitt
libfetchers/git: add missing `--git-dir` flags
2022-06-10Merge pull request #6641 from NixOS/fix-docker-ci-jobThéophane Hufschmitt
Correctly get the nix version in the docker job
2022-06-10libfetchers/git: add missing `--git-dir` flagsNaïm Favier
2022-06-10Correctly get the nix version in the docker jobThéophane Hufschmitt
`defaultPackage` doesn't exist anymore, so we can't use it. Instead just use the new CLI which should be more robust to these changes Fix #6640
2022-06-10Merge pull request #6637 from sidkshatriya/small-move-optimization-2Théophane Hufschmitt
nix-env: A small std::move() optimization
2022-06-10Update docker.nixJonpez2
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
2022-06-10install-multi-user: check if selinux is enabled and if it is then abortArtturin
2022-06-09nix-env: A small std::move() optimizationSidharth Kshatriya
Avoids doing a O(n) copy of Strings i.e. std::list<std::string>
2022-06-09Merge pull request #6635 from sidkshatriya/small-move-optimizationEelco Dolstra
nix-store: small std::move() optimization
2022-06-09nix-store: small std::move() optimizationSidharth Kshatriya
2022-06-08fix(libstore/lock): support users that belong to more than 10 groupsBernardo Meurer
The manpage for `getgrouplist` says: > If the number of groups of which user is a member is less than or > equal to *ngroups, then the value *ngroups is returned. > > If the user is a member of more than *ngroups groups, then > getgrouplist() returns -1. In this case, the value returned in > *ngroups can be used to resize the buffer passed to a further > call getgrouplist(). In our original code, however, we allocated a list of size `10` and, if `getgrouplist` returned `-1` threw an exception. In practice, this caused the code to fail for any user belonging to more than 10 groups. While unusual for single-user systems, large companies commonly have a huge number of POSIX groups users belong to, causing this issue to crop up and make multi-user Nix unusable in such settings. The fix is relatively simple, when `getgrouplist` fails, it stores the real number of GIDs in `ngroups`, so we must resize our list and retry. Only then, if it errors once more, we can raise an exception. This should be backported to, at least, 2.9.x.
2022-06-08Merge pull request #6630 from edolstra/boost-dylibEelco Dolstra
Remove ${boost}/lib from the RPATH
2022-06-08Update docker.nixEelco Dolstra
Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
2022-06-08Remove ${boost}/lib from the RPATHEelco Dolstra
2022-06-08Merge pull request #6624 from NixOS/new-flake-styleThéophane Hufschmitt
flake.nix: Convert to new naming convention
2022-06-08Merge pull request #6627 from asymmetric/key-commentEelco Dolstra
Fix missing ` in key manual
2022-06-08Fix missing ` in key manualLorenzo Manacorda
2022-06-08Add security.csm to the default ignore listJonpez2
2022-06-07Merge pull request #6618 from afishhh/search-excludeEelco Dolstra
Add `-e`/`--exclude` flag to `nix search`
2022-06-07Use `grep -c` instead of `grep|wc -l` in some `nix search` testsFishhh
2022-06-07Add tests for `--exclude` flag in `nix search`Fishhh
2022-06-07Remove redundant `std::move`s in calls to `hiliteMatches`Fishhh
2022-06-07Add `--exclude` flag to `nix search`Fishhh
If a package's attribute path, description or name contains matches for any of the regexes specified via `-e` or `--exclude` that package is excluded from the final output.