Home Explore Blog CI



nix

doc/manual/source/release-notes/rl-2.7.md
3a784ad8afcefaf3665d301872ae53e078a595ad8d48bc7d0000000300000521
# Release 2.7 (2022-03-07)

* Nix will now make some helpful suggestions when you mistype
  something on the command line. For instance, if you type `nix build
  nixpkgs#thunderbrd`, it will suggest `thunderbird`.

* A number of "default" flake output attributes have been
  renamed. These are:

  * `defaultPackage.<system>` → `packages.<system>.default`
  * `defaultApps.<system>` → `apps.<system>.default`
  * `defaultTemplate` → `templates.default`
  * `defaultBundler.<system>` → `bundlers.<system>.default`
  * `overlay` → `overlays.default`
  * `devShell.<system>` → `devShells.<system>.default`

  The old flake output attributes still work, but `nix flake check`
  will warn about them.

* Breaking API change: `nix bundle` now supports bundlers of the form
  `bundler.<system>.<name>= derivation: another-derivation;`. This
  supports additional functionality to inspect evaluation information
  during bundling. A new
  [repository](https://github.com/NixOS/bundlers) has various bundlers
  implemented.

* `nix store ping` now reports the version of the remote Nix daemon.

* `nix flake {init,new}` now display information about which files have been
  created.

* Templates can now define a `welcomeText` attribute, which is printed out by
  `nix flake {init,new} --template <template>`.

Chunks
0ba8def3 (1st chunk of `doc/manual/source/release-notes/rl-2.7.md`)
Title: Nix Release 2.7 (2022-03-07) - Improvements and Changes
Summary
Nix release 2.7 introduces helpful command-line suggestions, renames default flake output attributes (while maintaining backward compatibility with warnings), updates `nix bundle` to support more flexible bundlers, and improves `nix store ping` to report the remote daemon's version. Additionally, `nix flake {init,new}` now provide more feedback on created files, and templates can define a `welcomeText` attribute displayed during initialization.