Release 3.22.2 (2026-08-21)
- Based on upstream Nix 2.35.2.
nix eval --json has a new --drv-link flag
When you’re using nix eval --json to instantiate derivations, there is a possibility that a concurrent garbage collection run deletes the store derivations that were just created. Nix now has a new --drv-link flag that creates symlinks to the top-level derivations returned by the evaluations, avoiding this race condition.
PR: DeterminateSystems/nix-src#599
nix copy does not register remote store GC roots when talking to older daemons
Older versions of Determinate Nix as well as upstream Nix lack the ability to create multiple GC roots in a single RPC call. This made nix copy over high-latency connections very slow. Therefore, we no longer create GC roots when talking to such daemons. Note that this means that a concurrent garbage collection run on the remote store may delete the store paths that were just copied.
PR: DeterminateSystems/nix-src#598
Bug fixes
- upgradeDBSchema(): Don’t show “executing migration” messages on a new store by @edolstra in DeterminateSystems/nix-src#600
- CachingFilteringSourceAccessor: Make the isAllowed() cache thread-safe by @edolstra in DeterminateSystems/nix-src#601
Full Changelog: v3.22.1…v3.22.2