Silvan Mosberger
Silvan Mosberger
(discussed in the formatting team) This is more of a Nixpkgs issue. Once Nixpkgs supports this, `nixfmt` could also be made to work. Once it does work, you're welcome to...
In #151 we [decided](https://github.com/NixOS/nixfmt/issues/151#issuecomment-2008026386) to not further support this directory functionality in the future. We'll keep that issue open for now though.
I've been linking to https://github.com/NixOS/org/blob/main/doc/governance.md#governance so far, but yeah having that on the website would be great!
We discussed this in the team meeting today: - Sounds okay, but a bit ad-hoc, would be good to have a standard for such annotations - @tomberek: variations: `/*!` `/*nofmt`...
Btw here's the code that handles the conversion from `/* foo */` to `# foo`: https://github.com/NixOS/nixfmt/blob/e819b2d0f9173f0c73d2e1fb4bc5155362046653/src/Nixfmt/Lexer.hs#L131-L169
For reference, we had a discussion about this [on Matrix](https://matrix.to/#/!JHmxsrPoybcbBVDSjm:numtide.com/$FY83Z8RuKTtE637GF4IDuNkSUUsE5Y7Po39U6FzBFfU?via=nixos.org&via=matrix.org&via=nixos.dev)
@tomberek I get what you're trying to say, but you're blowing this way out of proportion > What could be done to make such a script more ergonomic? Let's take...
For now just pushed to resolve conflicts, not ready yet
This issue has a better title and description, but it's a effectively a duplicate of https://github.com/NixOS/nix/issues/3966, which has a bunch more discussion.
Ah yes thanks, fixed!