cmd/nardump: Go tool to build Nix NARs and compute their hashes.

Updates #6845.

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2022-12-24 14:45:39 -08:00
committed by Dave Anderson
parent a7f05c6bb0
commit 3599364312
2 changed files with 192 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
# nardump
nardump is like nix-store --dump, but in Go, writing a NAR file (tar-like,
but focused on being reproducible) to stdout or to a hash with the --sri flag.
It lets us calculate the Nix sha256 in shell.nix without the person running
git-pull-oss.sh having Nix available.