Release 2.10 (2022-07-11)
- 
nix replnow takes installables on the command line, unifying the usage with other commands that use--fileand--expr. Primary breaking change is for the common usage ofnix repl '<nixpkgs>'which can be recovered withnix repl --file '<nixpkgs>'ornix repl --expr 'import <nixpkgs>{}'.This is currently guarded by the repl-flakeexperimental feature.
- 
A new function builtins.traceVerboseis available. It is similar tobuiltins.traceif thetrace-verbosesetting is set to true, and it is a no-op otherwise.
- 
nix searchhas a new flag--excludeto filter out packages.
- 
On Linux, if /nixdoesn't exist and cannot be created and you're not running as root, Nix will automatically use~/.local/share/nix/rootas a chroot store. This enables non-root users to download the statically linked Nix binary and have it work out of the box, e.g.# ~/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!
- 
flake-registry.jsonis now fetched fromchannels.nixos.org.
- 
Nix can now be built with LTO by passing --enable-ltotoconfigure. LTO is currently only supported when building with GCC.