nixfmt alternatives and similar packages
Based on the "Development" category
Do you think we are missing an alternative of nixfmt or a related project?
<!-- © 2019 Serokell email@example.com
- © 2019 Lars Jellema firstname.lastname@example.org -
- SPDX-License-Identifier: MPL-2.0 -->
nixfmt is a formatter for Nix code, intended to easily apply a uniform style.
You are encouraged to test this out on your code and submit any undesirable formatting you find as an issue
nixfmtis in nixpkgs master as of 2019-09-04:
nix-env -iA nixpkgs.nixfmt
To get the most recent version, install from master:
# Optional: use cachix to get cached builds even for master cachix use nixfmt nix-env -f https://github.com/serokell/nixfmt/archive/master.tar.gz -i
Haskell dependencies will be built by Nix.
- Build with
Haskell dependencies will be built by Cabal.
- Build with
nixfmt < input.nix– reads Nix code form
stdin, formats it, and outputs to
nixfmt file.nix– format the file in place
We welcome issues and pull requests on GitHub.
nixfmt is maintained and funded with :heart: by
Serokell. The names and logo for Serokell are trademark
of Serokell OÜ.
*Note that all licence references and agreements mentioned in the nixfmt README section above are relevant to that project's source code only.