Skip to content

libexpr: support .tar.zst and .tar.bz2 for channels - #16709

Open
GraysonTinker wants to merge 2 commits into
NixOS:masterfrom
GraysonTinker:libexpr-zst-channels
Open

GraysonTinker wants to merge 2 commits into
NixOS:masterfrom
GraysonTinker:libexpr-zst-channels

Conversation

@GraysonTinker

Copy link
Copy Markdown
Member

Adapted mostly from this Lix commit. Second part of #16685, and closes #16126.

Motivation

.tar.xz channel tarballs are deprecated and will eventually be replaced with .tar.zst. This PR finishes adding support for the zstd tarballs to fetchTarball and libexpr.

Implementation

The zstd tarballs are now fetched when possible, which is all currently supported branches. Otherwise, it falls back to regular xz. (bz2 tarballs are now also checked, like in nix-channel -- these were used for some extremely old releases.)

I recommend reviewing the fetchTree changes with whitespace disabled. A lot of the diff is indentation noise.


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use nixexprs.tar.zst for channels

1 participant