Home Explore Blog CI



nix

doc/manual/source/release-notes/rl-2.22.md
135a2ff91ff87268de29c275a2ff66b5cfb4c18d81d4de6a0000000300000396
# Release 2.22.0 (2024-04-23)

### Significant changes

- Remove experimental repl-flake [#10103](https://github.com/NixOS/nix/issues/10103) [#10299](https://github.com/NixOS/nix/pull/10299)

  The `repl-flake` experimental feature has been removed. The `nix repl` command now works like the rest of the new CLI in that `nix repl {path}` now tries to load a flake at `{path}` (or fails if the `flakes` experimental feature isn't enabled).

### Other changes

- `nix eval` prints derivations as `.drv` paths [#10200](https://github.com/NixOS/nix/pull/10200)

  `nix eval` will now print derivations as their `.drv` paths, rather than as
  attribute sets. This makes commands like `nix eval nixpkgs#bash` terminate
  instead of infinitely looping into recursive self-referential attributes:

  ```ShellSession
  $ nix eval nixpkgs#bash
  «derivation /nix/store/m32cbgbd598f4w299g0hwyv7gbw6rqcg-bash-5.2p26.drv»
  ```


Chunks
701e6d63 (1st chunk of `doc/manual/source/release-notes/rl-2.22.md`)
Title: Nix Release 2.22.0 - Significant and Other Changes
Summary
Release 2.22.0 of Nix includes the removal of the experimental `repl-flake` feature. The `nix repl` command now loads flakes at a given path. Additionally, `nix eval` now prints derivations as `.drv` paths instead of attribute sets, preventing infinite loops when evaluating self-referential attributes.