-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add nixfmt #772
Add nixfmt #772
Conversation
Is this a competitor to https:/restyled-io/restylers/blob/main/nixpkgs-fmt/info.yaml ? Does it make sense to enable both or do we need to pick one to be our default? |
https:/NixOS/rfcs/blob/master/rfcs/0166-nix-formatting.md It is somewhat unclear to me whether the RFC version is going to continue to be called "nixfmt" going forward, but nixfmt is being used as the basis for the standard. I think maybe what's happening is that the |
Doing some more reading - Apparently Nix's idea of how formatting works is that the flake is responsible for providing the formatter it wants to use. You just run |
Because the command is
That sounds right.
I'm not sure I follow "within each flake directory". There wouldn't just be one All Restyled does is mount the current directory (the checked out project repository) as |
Probably a lot of repos have a
Oh, that's a dealbreaker on (The |
We should open a new Issue and discuss this further. Maybe there are ways around, or we can at least document it for when folks ask why it doesn't exist.
So would you like to proceed with this PR with |
Ah, didn't know how to do that. Will enable nixfmt. |
Head branch was pushed to by a user without write access
deef93d
to
36b0b15
Compare
Would you like some help running the test suite locally? I'm sensing a long feedback loop going on here. |
Sigh, alright, I installed the SDK thing. Test passes locally. |
No description provided.