8b4c137a3b
Nix can accept (nearly?) arbitrary values as attributes, if they are quoted in strings. So generating “dots” should always result in valid nix attributes. This uses the same regex as the nix lexer (as of 1.11). Also add a few tests whether it correctly generates symbol/non-symbol attributes. |
||
---|---|---|
benchmarks | ||
data | ||
doc | ||
main | ||
Nix | ||
tests | ||
.gitignore | ||
default.nix | ||
hnix.cabal | ||
LICENSE | ||
project.nix | ||
README.md | ||
Setup.hs | ||
shell.nix |
hnix
Haskell parser for Nix expression language.
Prerequisites
Nix is installed and in your $PATH
.
Tested with Nix v1.10.
Getting Started
$ git clone https://github.com/jwiegley/hnix.git
...
$ cd hnix
$ nix-shell
...
$ cabal test
...
$ cabal bench