2021-12-13 17:48:44 +02:00
|
|
|
# Release X.Y (202?-??-??)
|
2022-04-18 20:21:47 +03:00
|
|
|
|
2022-09-26 21:55:56 +03:00
|
|
|
* The `repeat` and `enforce-determinism` options have been removed
|
|
|
|
since they had been broken under many circumstances for a long time.
|
2022-11-25 15:14:32 +02:00
|
|
|
|
2022-12-07 18:13:16 +02:00
|
|
|
* You can now use [flake references] in the [old command line interface], e.g.
|
|
|
|
|
|
|
|
[flake references]: ../command-ref/new-cli/nix3-flake.md#flake-references
|
|
|
|
[old command line interface]: ../command-ref/main-commands.md
|
2022-12-07 16:23:01 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
# nix-build flake:nixpkgs -A hello
|
|
|
|
# nix-build -I nixpkgs=flake:github:NixOS/nixpkgs/nixos-22.05 \
|
|
|
|
'<nixpkgs>' -A hello
|
|
|
|
# NIX_PATH=nixpkgs=flake:nixpkgs nix-build '<nixpkgs>' -A hello
|
|
|
|
```
|
2022-12-13 00:40:49 +02:00
|
|
|
|
2022-11-09 01:31:48 +02:00
|
|
|
* Instead of "antiquotation", the more common term [string interpolation](../language/string-interpolation.md) is now used consistently.
|
|
|
|
Historical release notes were not changed.
|
2022-12-23 17:28:26 +02:00
|
|
|
|
2022-04-29 12:24:48 +03:00
|
|
|
* Error traces have been reworked to provide detailed explanations and more
|
|
|
|
accurate error locations. A short excerpt of the trace is now shown by
|
|
|
|
default when an error occurs.
|
2022-09-24 00:30:29 +03:00
|
|
|
|
|
|
|
* In derivations that use structured attributes, you can now use `unsafeDiscardReferences`
|
|
|
|
to disable scanning a given output for runtime dependencies:
|
|
|
|
```nix
|
|
|
|
__structuredAttrs = true;
|
2023-01-03 19:53:01 +02:00
|
|
|
unsafeDiscardReferences.out = true;
|
2022-09-24 00:30:29 +03:00
|
|
|
```
|
|
|
|
This is useful e.g. when generating self-contained filesystem images with
|
|
|
|
their own embedded Nix store: hashes found inside such an image refer
|
|
|
|
to the embedded store and not to the host's Nix store.
|
|
|
|
|
|
|
|
This requires the `discard-references` experimental feature.
|