Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.01 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.01 KB

Build Status

Overview

This repository contains:

  • nix/parser - a Nix parser. Optimized for speed, it parses all Nixpkgs in 2 seconds. It preserves comments and source positions and can be used to implement Nix files formatting.
  • nix/nixhash - Nix-compatible hasher for store paths.
  • nix/eval - an incomplete Nix evaluator. It can't evaluate realistic Nix files, but it's a start.
  • cmd/gon - an utility that exposes these libraries from the command line.

Development

How to build

$ nix-build

Build cmd/gon

$ result-bin/bin/gon help

Get a development environment

$ nix-shell
$ go build ./...

Run tests

$ go test ./...

Credits