One of the most downloaded artifacts
nixpkgs is currently served with
gz compression as it comes from github instead of the more effective
xz compression which is used for all other artifacts coming from cache.nixos.org.
The size of the current nixpkgs unstable archive:
gzcompressed: 26.5 MB
xzcompressed: 18 MB
For some of you sitting behind gigabit, it might not make a difference, but for many other people time waiting for nixpkgs to finish downloading accumulates during the day.
The interesting thing is, that a
xz compressed version of each nixpkgs is already available from cache.nixos.org. If one imports a remote nixpkgs and access it’s
path attribute, one can observe that nix re-downloads a
xz version of that nixpkgs archive.
It is there, but it seems like there is no way of finding it without first downloading the badly compressed
Is there a way to fix that? can we somehow make a cheap API that provides us with the
xz URL for a given nixpkgs revision?