]>
description | GC-anchor a Nix build's dependencies |
last change | Wed, 23 Oct 2024 03:56:42 +0000 (20:56 -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
.
2024-10-23 | Scott Worley | Release 1.1.0 master v1.1.0 | commit | commitdiff | tree | snapshot |
2024-10-23 | Scott Worley | nix show-derivation → nix derivation show | commit | commitdiff | tree | snapshot |
2024-10-23 | Scott Worley | Start keeping a changelog | commit | commitdiff | tree | snapshot |
2023-07-22 | Scott Worley | Adapt to nixpkgs' nativeCheckInputs change | commit | commitdiff | tree | snapshot |
2022-11-24 | Scott Worley | Specify license | commit | commitdiff | tree | snapshot |
2022-05-20 | Scott Worley | README: Explain what this is for v1.0.0 | commit | commitdiff | tree | snapshot |
2022-05-20 | Scott Worley | Build stuff | commit | commitdiff | tree | snapshot |
2022-05-20 | Scott Worley | __main__ thing | commit | commitdiff | tree | snapshot |
2022-05-20 | Scott Worley | Appease pylint | commit | commitdiff | tree | snapshot |
2022-05-20 | Scott Worley | mypy types | commit | commitdiff | tree | snapshot |
2022-05-20 | Scott Worley | Start | commit | commitdiff | tree | snapshot |
2 months ago | v1.1.0 | | commit | shortlog | log | ||
2 years ago | v1.0.0 | | commit | shortlog | log |
2 months ago | master | shortlog | log | tree |