adisbladis / go-nix

Elements of Nix re-implemented as Go libraries [maintainer=@flokli]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-nix - Nix experiments written in go

STATUS: experimental

This repository holds a bunch of experiments written in Go.

cmd/gonix

A command line entrypoint called gonix, currently implementing the nar {cat,dump-path,ls} commands.

They're not meant to be 100% compatible, but are documented in the --help output.

pkg/derivation

A parser for Nix .drv files

pkg/hash

Methods to serialize and deserialize some of the hashes used in nix code and .narinfo files.

pkg/nar

A Nix ARchive (NAR) file Reader and Writer, with an interface similar to archive/tar from the stdlib, as well as a DumpPath method, which will assemble a NAR representation of a local file system path.

pkg/nar/ls

A parser for .ls files (providing an index for .nar files)

pkg/nar/narinfo

A parser and generator for .narinfo files.

pkg/nixbase32

An implementation of the slightly odd "base32" encoding that's used in Nix, providing some of the functions in encoding/base32.Encoding.

pkg/nixpath

A parser and regexes for Nix Store Paths.

pkg/wire

Methods to parse and produce fields used in the low-level Nix wire protocol.

About

Elements of Nix re-implemented as Go libraries [maintainer=@flokli]

License:Apache License 2.0


Languages

Language:Go 100.0%