tweag / nix-hour

Questions for the weekly Nix Hour
MIT License
78 stars 3 forks source link

What are the Tangible Benefits of the `finalAttrs` Pattern? #35

Closed Lord-Valen closed 1 year ago

Lord-Valen commented 1 year ago

Introduced in https://github.com/NixOS/nixpkgs/pull/119942, Robert states a few advantages of "overlay style overridable recursive attributes". I think it would be useful to demonstrate the cases where rec is insufficient or undesirable and show how the finalAttrs pattern addresses them.

infinisil commented 1 year ago

We looked into this in todays Nix Hour :smiley: