Files
lix/doc/manual/src/release-notes/rl-next.md
T
2023-01-03 18:53:01 +01:00

1.4 KiB

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

  • The repeat and enforce-determinism options have been removed since they had been broken under many circumstances for a long time.

  • You can now use flake references in the old command line interface, e.g.

    # 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
    
  • Instead of "antiquotation", the more common term string interpolation is now used consistently. Historical release notes were not changed.

  • 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.

  • In derivations that use structured attributes, you can now use unsafeDiscardReferences to disable scanning a given output for runtime dependencies:

    __structuredAttrs = true;
    unsafeDiscardReferences.out = true;
    

    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.