Age | Commit message (Collapse) | Author |
|
Enable tests for nix-static
|
|
Fix incremental static builds
|
|
pkgsStatic is apparently considered a cross environment, so checkPhase
and installCheckPhase are disabled even when we ask for them.
|
|
$? refers to the object files that are newer, so the resulting file
would lack all the older object files.
|
|
|
|
Fix arity of `--exclude` flag in `nix search`
|
|
virusdave/dnicponski/scratch/swap_homedir_check_master
Verify this if `$HOME` exists, it is owned by current user in `getHome()`
|
|
|
|
Due to incorrectly using the Handler(vector<string>*) constructor the
`--exclude` flag would swallow all proceeding arguments instead of just
one.
|
|
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
|
|
respect print-missing variable in new-style build command
|
|
Add disambiguation to man page
|
|
flake.cc: Make non-flake overrides sticky
|
|
This should help future lost newcomers like myself understand where to
find the docs for both of these commands and how they differ.
|
|
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.
|
|
Add security.csm to ignored-acls
|
|
repl: `--option pure-eval true` actually enables pure eval mode
|
|
fix(libstore/lock): support users that belong to more than 10 groups
|
|
install-multi-user: check if selinux is enabled and if it is then abort
|
|
Add missing rethrows in conditional exception handlers
|
|
nix-build: stop logger when appropriate
|
|
fix sourcehut brach/tag resolving regression
|
|
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.
|
|
Reverts b944b588fa280b0555b8269c0f6d097352f8716f in `nix-build.cc`.
|
|
Mention that -f implies --impure for eval in docs
|
|
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
|
|
Right now this is not mentioned anywhere and it is unexpected.
|
|
libfetchers/git: add missing `--git-dir` flags
|
|
Correctly get the nix version in the docker job
|
|
|
|
`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
|
|
nix-env: A small std::move() optimization
|
|
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
|
|
|
|
Avoids doing a O(n) copy of Strings i.e. std::list<std::string>
|
|
nix-store: small std::move() optimization
|
|
|
|
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.
|
|
Remove ${boost}/lib from the RPATH
|
|
Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
|
|
|
|
flake.nix: Convert to new naming convention
|
|
Fix missing ` in key manual
|
|
|
|
|
|
Add `-e`/`--exclude` flag to `nix search`
|
|
|
|
|
|
|
|
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.
|