Crate nix_compat

source ·


  • aterm 🔒
  • NAR info files describe a store path in a traditional Nix binary cache. Over the wire, they are formatted as “Key: value” pairs separated by newlines.
  • nix_daemon 🔒
  • Implements the slightly odd “base32” encoding that’s used in Nix.
  • Module parsing and emitting the wire format used by Nix, both in the nix-daemon protocol as well as in the NAR format.


  • Protocol versions are represented as a u16. The upper 8 bits are the major version, the lower bits the minor. This is not aware of any endianness, use [crate::wire::read_u64] to get an u64 first, and the try_from() impl from here if you’re receiving over the Nix Worker protocol.