The official (but not yet stable) formatter for Nix code
MPL-2.0 License
Bot releases are hidden (Show)
nixfmt [dir]
now recursively formats nix files in that directory.Published by yorickvP over 2 years ago
Static linux binary included.
Published by mkaito over 4 years ago
Published by mkaito over 4 years ago
Published by Lucus16 about 5 years ago
Published by Lucus16 about 5 years ago
We've improved nixfmt
by using atomic writes to avoid data loss, adding proper indentation and making sure nixfmt
is idempotent so you won't get strange behavior when you run it again.
Please try out our formatter on your code and see if you like the result. For any parts you think are formatted unclearly, please make an issue so we can improve it.
nix-env -f https://github.com/serokell/nixfmt/archive/v0.2.0.tar.gz -i