Hi Hugo, Hugo Buddelmeijer via <[email protected]> skribis:
> What would be the easiest way to prevent any package from a specific > commit (or generation) to be garbage collected? > > E.g. I build a package, which requires certain compilers as native > input, and then I garbage collect. Then I don't want those compilers > to be collected. A good approximation might be something like: guix time-machine --commit=XYZ -- build -D hello -r dev-root guix time-machine --commit=XYZ -- build hello -r hello-root guix time-machine --commit=XYZ -- build -S hello -r source-root Then you have those three GC roots, plus the one cached by ‘time-machine’ for Guix itself. HTH! Ludo’.
