Skip to content

Release 2.17 (2023-07-24)

{
  nested = {
    foo = 1;
  };
  nested = {
    ${"ba" + "r"} = 2;
  };
}

This used to silently discard nested.bar, but now behaves as one would expect and evaluates to:

{ nested = { bar = 2; foo = 1; }; }

Note that the feature of merging multiple full declarations of attribute sets like nested in the example is of questionable value. It allows writing expressions that are very hard to read, for instance when there are many lines of code between two declarations of the same attribute. This has been around for a long time and is therefore supported for backwards compatibility, but should not be relied upon.

Instead, consider using the nested attribute path syntax:

{
  nested.foo = 1;
  nested.${"ba" + "r"} = 2;
}
  • Tarball flakes can now redirect to an "immutable" URL that will be recorded in lock files. This allows the use of "mutable" tarball URLs like https://example.org/hello/latest.tar.gz in flakes. See the tarball fetcher for details.