nixfmt
nixfmt copied to clipboard
Don't expand final list arguments of functions
Applies #233 to last arguments too
Best review commit by commit
This work is sponsored by Antithesis :sparkles:
This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/formatting-team-meeting-2024-09-17/52300/1
This produces a couple of weird outputs, like
(mkRenamedOptionModule [
"services"
"xserver"
"displayManager"
"sddm"
"enable"
] [ "services" "displayManager" "sddm" "enable" ])
Not sure how to easily solve that though
Edit: okay so it turns out the solution is to stop caring about mkRenamedOptionModule and replace it with an alternative API which doesn't require these weird attrpath lists in the first place.
This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/formatting-team-meeting-2024-10-01/53763/1
This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/how-to-use-nixfmt-for-nixpkgs/56590/2
Superseded by #257