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>
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-flakeis no longer needed, as its functionality is now part of theflakesexperimental feature. To get the previous behavior, use the--file/--exprflags accordingly. -
Introduce new flake installable syntax
flakeref#.attrPathwhere the "." prefix denotes no searching of default attribute prefixes likepackages.<SYSTEM>orlegacyPackages.<SYSTEM>. -
Nix adds
apple-virtto the default system features on macOS systems that support virtualization. This is similar to what's done for thekvmsystem feature on Linux hosts. -
Introduce a new built-in function
builtins.convertHash. -
nix-shellshebang lines now support single-quoted arguments. -
builtins.fetchTreeis now marked as stable. -
The interface for creating and updating lock files has been overhauled:
-
nix flake lockonly creates lock files and adds missing inputs now. It will never update existing inputs. -
nix flake updatedoes 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-fileand--update-inputhave been removed from all commands operating on installables. They are superceded bynix flake update.
-
-
Commit signature verification for the
builtins.fetchGitis added as the newverified-fetchesexperimental feature.