Age | Commit message (Collapse) | Author |
|
|
|
|
|
fetchGit: document `shallow` argument
|
|
|
|
Fetch flake-registry.json from channels.nixos.org
|
|
Automatically use a chroot store if /nix doesn't exist
|
|
|
|
https://github.com/NixOS/nix/pull/6708#issuecomment-1165912951
|
|
Forbid the tilde expansion in pure eval mode
|
|
eval-cache: cast rowId to correct type
|
|
libstore/nar-info: drop unused system field
|
|
Using fastly is slightly faster, provides some resilience due to a
high stale TTL, and allows some usage metrics.
|
|
Prevents errors when running with UBSan:
/nix/store/j5vhrywqmz1ixwhsmmjjxa85fpwryzh0-gcc-11.3.0/include/c++/11.3.0/bits/stl_pair.h:353:4: runtime error: load of value 229, which is not a valid value for type 'AttrType'
|
|
This was unused everywhere (and even the official NixOS binary cache
did not produce .narinfo files containing a "System:" field).
|
|
Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
|
|
Specifically, if we're not root and the daemon socket does not exist,
then we use ~/.local/share/nix/root as a chroot store. This enables
non-root users to download nix-static and have it work out of the box,
e.g.
ubuntu@ip-10-13-1-146:~$ ~/nix run nixpkgs#hello
warning: '/nix' does not exists, so Nix will use '/home/ubuntu/.local/share/nix/root' as a chroot store
Hello, world!
|
|
Embed the sandbox shell into the statically linked 'nix' binary
|
|
|
|
libstore: improve warning message on missing sig
|
|
With this, Nix will write a copy of the sandbox shell to /bin/sh in
the sandbox rather than bind-mounting it from the host filesystem.
This makes /bin/sh work out of the box with nix-static, i.e. you no
longer get
/nix/store/qa36xhc5gpf42l3z1a8m1lysi40l9p7s-bootstrap-stage4-stdenv-linux/setup: ./configure: /bin/sh: bad interpreter: No such file or directory
|
|
Fix build-remote in nix-static
|
|
|
|
|
|
'build-remote' is now executed via /proc/self/exe so it always works.
|
|
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`
|
|
Fix #6684
|
|
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
|
|
Clarifies that the substitute will be ignored/skipped.
|
|
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`.
|