A NAR implementation in C, for bootstrapping purposes
LICENSES | ||
test-cases | ||
test-out | ||
.clang-format | ||
.envrc | ||
.gitignore | ||
cnar.c | ||
Makefile | ||
README.md | ||
REUSE.toml | ||
shell.nix | ||
test.sh |
cnar
This is a C NAR implementation. The purpose of this program is to dump directories into NAR files and to not depend on anything.
To that end, it doesn't depend on anything but libc.
Usage
$ make
$ ./cnar some-file-or-directory > foo.nar
C???
The purpose of this software is to not have any dependencies, and Rust or something else good has dependencies.
Tests
Run ./test.sh
. If it's busted, try vbindiff
.
Related work
- gridlock, a lockfile manager in Rust with no dependencies on Nix implementations.