[Nix-dev] garbage collection and nix-push

Eelco Dolstra eelco.dolstra at logicblox.com
Wed Oct 3 15:45:31 CEST 2012


Hi,

On 03/10/12 01:23, Mathijs Kwik wrote:

> The hardware I use for building my channel is not very powerful. It
> does a good job of building derivations, but packing nar files with xz
> takes ages.
> 
> My channel is nothing special, It just builds the configurations for a
> few home machines and laptops and some packages that hydra doesn't
> build with the optional dependencies I like.
> 
> By registering the outputs as gc roots, I made sure no extensive
> rebuilds are performed when I don't change much.
> However, after a garbage collector run, all nar outputs get removed,
> leading to long push times on the next run.
> 
> So for now, I just lowered the garbage-collection cronjob to once a week.
> 
> Does anyone have a suggestion on how to work around this?

I think nix-push should just check whether a narinfo/nar for a given store path
already exist in the output directory, and if so, refrain from rebuilding them.

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/


More information about the nix-dev mailing list