nixfmt VS nixpkgs-fmt

Compare nixfmt vs nixpkgs-fmt and see what are their differences.

nixfmt

The official (but not yet stable) formatter for Nix code (by NixOS)

nixpkgs-fmt

Nix code formatter for nixpkgs [maintainer=@zimbatm] (by nix-community)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
nixfmt nixpkgs-fmt
- 1
618 551
18.9% 4.0%
9.0 5.8
5 days ago about 2 months ago
Nix Rust
Mozilla Public License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

nixfmt

Posts with mentions or reviews of nixfmt. We have used some of these posts to build our list of alternatives and similar projects.

We haven't tracked posts mentioning nixfmt yet.
Tracking mentions began in Dec 2020.

nixpkgs-fmt

Posts with mentions or reviews of nixpkgs-fmt. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-11-25.
  • Editor support for the nix language?
    5 projects | /r/NixOS | 25 Nov 2022
    As others have mentioned, there are a couple of LSP implementations. There's also statix for basic static analysis, as well as a few formatters, including nixpkgs-fmt and alejandra.

What are some alternatives?

When comparing nixfmt and nixpkgs-fmt you can also consider the following projects:

hlint - Haskell source code suggestions

alejandra - The Uncompromising Nix Code Formatter

markdown-unlit - Literate Haskell support for Markdown

nix-init - Generate Nix packages from URLs with hash prefetching, dependency inference, license detection, and more [maintainer=@figsoda]

leksah - Haskell IDE

treefmt - one CLI to format your repo

ihp - 🔥 The fastest way to build type safe web apps. IHP is a new batteries-included web framework optimized for longterm productivity and programmer happiness

statix - lints and suggestions for the nix programming language

marvin - The paranoid bot (framework)

devenv - Fast, Declarative, Reproducible, and Composable Developer Environments

nix-mate - Installing stuff with Nix made easy

nurl - Generate Nix fetcher calls from repository URLs [maintainer=@figsoda]