]> git.scottworley.com Git - nix-pin-deps/blame_incremental - README.md
Adapt to nixpkgs' nativeCheckInputs change
[nix-pin-deps] / README.md
... / ...
CommitLineData
1nix-pin-deps: GC-anchor a Nix build's dependencies
2--------------------------------------------------
3
4When a Nix build fails for lack of disk space and a `nix-collect-garbage`
5is needed to make disk space available, `nix-collect-garbage` will
6unhelpfully delete the successfully-built dependencies of the derivation
7that failed because they are are not yet gc-anchored, because the
8build failed.
9
10This tool solves this problem:
11
12 `nix-pin-deps /nix/store/...-foo.drv foo-deps`
13
14will create gc-anchors in foo-deps/ for all of the dependencies of foo.drv
15that exist in the nix store, keeping partial build progress safe from
16`nix-collect-garbage`.