Skip to content
/ go-nix Public

Nix language parser and Nix-compatible file hasher in Go

License

Notifications You must be signed in to change notification settings

orivej/go-nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Nix language parser and Nix-compatible file hasher in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published