aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-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-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.
2022-06-07Merge pull request #6598 from cole-h/update-flake-for-realEelco Dolstra
flake: update to 22.05
2022-06-07Convert to new flake styleEelco Dolstra
https://github.com/NixOS/nix/issues/5532
2022-06-07Fix 22.05 eval warningsEelco Dolstra
2022-06-07Disable cross builds on platforms other than x86_64-linuxEelco Dolstra
Needed because evaluation was broken on x86_64-darwin.
2022-06-07Merge pull request #6602 from cw789/patch-2Eelco Dolstra
Explain exactly what nix-upgrade nix does
2022-06-05Fix incorrect comment in `hiliteMatches`Fishhh
2022-06-03Merge pull request #6603 from abathur/installer_fix_vi_swapfileEelco Dolstra
darwin-install: work around existing vim swap files
2022-06-03Merge pull request #6600 from asymmetric/hash-commentEelco Dolstra
schema.sql: add comment about hash being in base16
2022-06-03Merge pull request #6610 from edolstra/random-fixesEelco Dolstra
Random fixes/improvements from the lazy-trees branch
2022-06-02Avoid unnecessary string copyEelco Dolstra
2022-06-02Add operator for concatenating strings and string_viewsEelco Dolstra
2022-06-02TypoEelco Dolstra
2022-06-02Shut up clang warningsEelco Dolstra
2022-06-02tests/flakes.sh: Fix some ignored breakageEelco Dolstra
2022-06-02Explain exactly what nix-upgrade nix doesChris Wögi
2022-06-01Merge pull request #5813 from pennae/ltoThéophane Hufschmitt
enable LTO in optimized builds
2022-06-01Merge branch 'master' into ltoThéophane Hufschmitt
2022-06-01darwin-install: work around existing vim swapfilesTravis A. Everett
User on Matrix reported install problems which presented as "vifs:editing error" which we traced back to vim griping about an existing swap file. When opened interactively, it did this: E325: ATTENTION Found a swap file by the name "/etc/.fstab.swp" owned by: root dated: Sön Apr 24 16:54:10 2022 file name: /private/etc/fstab modified: YES user name: root host name: MBP.local process ID: 1698 While opening file "/etc/fstab" dated: Sön Apr 24 16:56:27 2022 NEWER than swap file! ...
2022-06-01schema.sql: add comment about hash being in base16Lorenzo Manacorda
2022-05-31tests/nss-preload: move nix-fetch bindingCole Helbling
2022-05-31flake: update to 22.05Cole Helbling
The static build works now :)
2022-05-31Merge pull request #6582 from NixOS/debug-fetchgit-sigsevEelco Dolstra
Fix a segfault in the git fetcher
2022-05-31TypoEelco Dolstra
2022-05-31Merge pull request #6537 from cole-h/update-flakeEelco Dolstra
flake: use github: reference to nixpkgs
2022-05-30Bump versionEelco Dolstra
2022-05-30Branch 2.9 release notesEelco Dolstra
2022-05-30Merge pull request #6590 from edolstra/fix-noexceptEelco Dolstra
Fix noexcept violations
2022-05-30Mark nix-perl as a Perl moduleEelco Dolstra
The call to perl.withPackages in nix-serve expects this.
2022-05-30Merge pull request #6589 from edolstra/respect-output-specifiedEelco Dolstra
Respect the outputSpecified attribute
2022-05-30Set meta.platformsEelco Dolstra
'nix-serve' in nixpkgs expects the nix package to set this.
2022-05-30RemoteStore::queryRealisationUncached(): Fix potential noexcept violationEelco Dolstra
2022-05-30HttpBinaryCacheStore::getFile(): Don't throw an exceptionEelco Dolstra
This violates the noexcept specification. Fixes #6445.
2022-05-30Respect the outputSpecified attributeEelco Dolstra
E.g. 'nix build nixpkgs#libxml2.dev' will build the 'dev' output.
2022-05-27Fix a segfault in the git fetcherThéophane Hufschmitt
The git fetcher code used to dereference the (potentially empty) `ref` input attribute. This was magically working, probably because the compiler somehow outsmarted us, but is now blowing up with newer nixpkgs versions. Fix that by not trying to access this field while we don't know for sure that it has been defined. Fix #6554
2022-05-27Style fixEelco Dolstra
2022-05-27Merge branch 'doc-redirects' of https://github.com/jtojnar/nixEelco Dolstra
2022-05-26Merge pull request #6580 from trofi/fix-build-for-gcc-13Eelco Dolstra
src/libutil/json.cc: add missing <cstdint> include for gcc-13
2022-05-26src/libutil/json.cc: add missing <cstdint> include for gcc-13Sergei Trofimovich
Without the change llvm build fails on this week's gcc-13 snapshot as: src/libutil/json.cc: In function 'void nix::toJSON(std::ostream&, const char*, const char*)': src/libutil/json.cc:33:22: error: 'uint16_t' was not declared in this scope 33 | put(hex[(uint16_t(*i) >> 12) & 0xf]); | ^~~~~~~~ src/libutil/json.cc:5:1: note: 'uint16_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'? 4 | #include <cstring> +++ |+#include <cstdint> 5 |
2022-05-26doc: Add redirects for the DocBook manualJan Tojnar
There are still many links to the old manual on the web and having them end up on the Introduction page is a bad user experience.