@cryptotaxi247 / infra-1 / commits / 93f3b9c2

nixos-channel-scripts: match nixexprs.tar.xz with regex pattern

This improves robustness in the case new nixexprs tarballs with different compression methods get introduced.

Martin Weinelt committed Jun 25, 2026 at 15:31 UTC 93f3b9c2909737ef76c515f955f58c97533a0cc5
1 file changed +2 -2
pkgs/nixos-channel-scripts/mirror-nixos-branch.pl
+2 -2
@@ -225,7 +225,7 @@ if ($bucketReleases && $bucketReleases->head_key("$releasePrefix")) {
225 }
226
227 if ($channelName =~ /nixos/) {
228 - downloadFile("nixos.channel", "nixexprs.tar.xz");
228 + downloadFile("nixos.channel", "nixexprs.tar.xz", "source-dist", '\.tar\.xz$');
229 downloadFile("nixpkgs.tarball", "packages.json.br", "json-br");
230 downloadFile("nixos.options", "options.json.br", "json-br");
231
@@ -265,7 +265,7 @@ if ($bucketReleases && $bucketReleases->head_key("$releasePrefix")) {
265 }
266
267 } else {
268 - downloadFile("tarball", "nixexprs.tar.xz", "source-dist");
268 + downloadFile("tarball", "nixexprs.tar.xz", "source-dist", '\.tar\.xz$');
269 downloadFile("tarball", "packages.json.br", "json-br");
270 }
271