Hi fellow Guixers,

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.

Or package sources.  Or something I built but did not actually install.

I'd like everything that corresponds to a specific guix commit (or several) to be considered 'live'.

I can think of various hackish ways to approach this problem, but I'm not experienced enough to quickly whip something together.

For example, I suppose it would be possible to calculate all 30000 derivation hashes, look which one are in the store, and then install everything found into a profile.

And I tried to write a procedure that takes a manifest as input, and returns a manifest that recursively includes all native-inputs of the input manifest, so I could explicitly install all of those.

Maybe one of you has something on the shelf already?

Thanks,

Hugo


Reply via email to