[Nix-dev] Haskell Parser for (subset of) Nix

Peter Simons simons at cryp.to
Sat Mar 23 10:28:31 CET 2013


Hi guys,

following the spirit of "release early, release often" I'd like to point
out that the repository <https://github.com/peti/language-nix> contains
a (mostly complete) Parsec parser for Nix. It can parse all-packages.nix
and other complicated files, but there are known issues. When I try to
parse all of Nixpkgs [1], I still get a dozen errors or so.

Anyway, the library seems to provide a decent enough starting point to
do some hacking, so I felt that I should share it.

Take care,
Peter


[1] run "parse-nix $(find ~/.nix-defexpr -name *.nix ) >/dev/null"



More information about the nix-dev mailing list