]> git.scottworley.com Git - nix-pin-deps/summary
 
descriptionGC-anchor a Nix build's dependencies
last changeSat, 22 Jul 2023 15:16:41 +0000 (08:16 -0700)
readme

nix-pin-deps: GC-anchor a Nix build’s dependencies

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.

shortlog
2023-07-22 Scott WorleyAdapt to nixpkgs' nativeCheckInputs change master
2022-11-24 Scott WorleySpecify license
2022-05-20 Scott WorleyREADME: Explain what this is for v1.0.0
2022-05-20 Scott WorleyBuild stuff
2022-05-20 Scott Worley__main__ thing
2022-05-20 Scott WorleyAppease pylint
2022-05-20 Scott Worleymypy types
2022-05-20 Scott WorleyStart
tags
23 months ago v1.0.0
heads
9 months ago master