this post was submitted on 05 Mar 2024
21 points (95.7% liked)

Nix / NixOS

1765 readers
8 users here now

Main links

Videos

founded 1 year ago
MODERATORS
top 4 comments
sorted by: hot top controversial new old
[–] priapus@sh.itjust.works 5 points 8 months ago (1 children)

Awesome! I'm glad I'll be able to use format on save in Helix without screwing up my Nixpkgs commits.

[–] Atemu@lemmy.ml 3 points 8 months ago (1 children)

Note that it'll still be a while until Nixpkgs will be bulk-formatted; this RFC "only" decides on the style and how to proceed.

[–] priapus@sh.itjust.works 3 points 8 months ago

yeah I assume the implementation will take some time, glad to see the initial steps though!

[–] onlinepersona@programming.dev -3 points 8 months ago

A default line length of 100 characters? Wow, they're moving with times. None of that 80 character archaicness 👍

The leading comma style was a lesser-evil workaround for the lack of trailing commas in the Nix language. Now that the language has this feature, there is no reason to keep it that way anymore.

source

Amazing! Finally that terrible style is out.

About time they decide to format nixpkgs. That is such a mess at the moment and gives reviewers the ability to nitpick and force their own style - of course every reviewer has a different style. Only took them ~25 years, but they're getting there 👏

Good job on getting this through.

CC BY-NC-SA 4.0