Releases: NixOS/nixfmt
Releases · NixOS/nixfmt
v0.6.0
- Fix escaping of interpolations after dollar signs.
- Fix nixfmt trying to allocate temp files that aren't used.
- Don't write if files didn't change, fixing treefmt compatibility
- Nixfmt now accepts the '-' argument to read from stdin.
nixfmt [dir]
now recursively formats nix files in that directory.- Float and int literal parsing now matches nix.
v0.5.0
- Add a nix flake to the nixfmt project.
- Add a --verify flag to check idempotency.
- Support nix path (./${foo}.nix) interpolations.
- Fix escaping of interpolations after single quotes.
- Fix handling of multiline strings with spaces in the last line.
Static linux binary included.
v0.4.0
v0.3.1
v0.3.0
v0.2.0
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