add min-copy-closure, a minimal nix-copy-closure substitute

This commit is contained in:
Daniel Barlow
2023-05-06 22:47:03 +01:00
parent 67768004ee
commit 30153a2d4e
5 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
#!/usr/bin/env sh
cd /nix/store
while read f ; do
test "$f" = "end" && break
test -e $f || echo -n $f " "
done
mkdir -p /tmp/store
cd /tmp/store
cpio -i