A bit late but since this pr by infinisil got recently merged, I figure I’d raise a question about stylistic choices that exist beyond nixfmt’s scope.
Something I see often between various packages is the inconsistency of mkDerivation rec {}
vs mkDerivation (finalAttrs: {})
. This actually was the main thing that prompted me to ask this question and raise it to the community. Do we have stable and consistent documentation detailing a preferred style for packages in nixpkgs? I think if not it would be great to make it a more prominent discussion now that we are overall becoming more serious about formatting across the board.
To the community I also raise another question, maybe this can serve as a place of discussion; are there other inconsistencies in nixpkgs that you find should be relevant in this scope and brought to attention?