1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-24 11:19:35 +01:00
nix/doc/manual/src/release-notes/rl-next.md
BootRhetoric 098f0615c9
fetchGit and flake: add publicKeys list input
This adds publicKeys as an optional fetcher input attribute to flakes
and builtins.fetchGit to provide a nix interface for the json-encoded
`publicKeys` attribute of the git fetcher.

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-11-03 20:23:31 +01:00

2.3 KiB

Release X.Y (202?-??-??)

  • URL flake references now support percent-encoded characters.

  • Path-like flake references now accept arbitrary unicode characters (except # and ?).

  • The experimental feature repl-flake is no longer needed, as its functionality is now part of the flakes experimental feature. To get the previous behavior, use the --file/--expr flags accordingly.

  • Introduce new flake installable syntax flakeref#.attrPath where the "." prefix denotes no searching of default attribute prefixes like packages.<SYSTEM> or legacyPackages.<SYSTEM>.

  • Nix adds apple-virt to the default system features on macOS systems that support virtualization. This is similar to what's done for the kvm system feature on Linux hosts.

  • Introduce a new built-in function builtins.convertHash.

  • nix-shell shebang lines now support single-quoted arguments.

  • builtins.fetchTree is now marked as stable.

  • The interface for creating and updating lock files has been overhauled:

    • nix flake lock only creates lock files and adds missing inputs now. It will never update existing inputs.

    • nix flake update does the same, but will update inputs.

      • Passing no arguments will update all inputs of the current flake, just like it already did.
      • Passing input names as arguments will ensure only those are updated. This replaces the functionality of nix flake lock --update-input
      • To operate on a flake outside the current directory, you must now pass --flake path/to/flake.
    • The flake-specific flags --recreate-lock-file and --update-input have been removed from all commands operating on installables. They are superceded by nix flake update.

  • Commit signature verification for the builtins.fetchGit is added as the new verified-fetches experimental feature.