farcaller / gonix

Go bindings to nix API
https://pkg.go.dev/github.com/farcaller/gonix
Apache License 2.0
28 stars 1 forks source link
go nix

Go bindings to nix API

Go Report
Card GoDoc

Building

These bindings depend on the Nix C API, which is currently only available in nix master. It's a moving target, and while we try to catch up, sometimes the API is broken so you must pull nix from the same revision that's tracked in this flake's nix, and make both nix.dev and pkg-config available in your buildInputs for the CGO bindings to work. Consult the flake.nix for an example.

API Docs

See godoc for API and examples.