]>
| description | GC-anchor a Nix build's dependencies |
| last change | Sat, 9 May 2026 08:06:32 +0000 (01:06 -0700) |
| URL | https://git.scottworley.com/pub/git/nix-pin-deps |
When a Nix build fails for lack of disk space and a nix-collect-garbage
is needed to make disk space available, nix-collect-garbage will
unhelpfully delete the successfully-built dependencies of the derivation
that failed because they are are not yet gc-anchored, because the
build failed.
This tool solves this problem:
nix-pin-deps /nix/store/...-foo.drv foo-deps
will create gc-anchors in foo-deps/ for all of the dependencies of foo.drv
that exist in the nix store, keeping partial build progress safe from
nix-collect-garbage.
| 8 days ago | v1.1.1 | | commit | shortlog | log | ||
| 18 months ago | v1.1.0 | | commit | shortlog | log | ||
| 3 years ago | v1.0.0 | | commit | shortlog | log |
| 8 days ago | master | shortlog | log | tree |