Automatic code formatter for the Nix programming language
Branch: master
Clone or download
Gabriel439 Merge pull request #1 from domenkozar/master add usage instructions
Latest commit ae310b5 Sep 22, 2016
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Simplify error output Sep 4, 2016
LICENSE Initial commit Sep 3, 2016 add usage instructions Sep 20, 2016
Setup.hs Initial commit Sep 3, 2016
example.nix Add example Nix file Sep 4, 2016
nixfmt.cabal Initial commit Sep 3, 2016
stack.yaml Initial commit Sep 3, 2016


This is my Munihac project to write an automatic code formatter for the Nix expression language. It's very messy, pathologically slow on some code, and also rejects some valid Nix expressions, but I'm sharing my latest draft for other people to browse so they can see what a mess I made.

I'll probably revisit this later and polish it more when I have more time. If you feel the desire to contribute to this just ask! The best way to jump in is to submit a pull request or open an issue to discuss ways to contribute.


$ nix-shell -p stack haskell.compiler.ghc7103
$ stack build
$ stack exec -- nixfmt < somefile.nix