Skip to content

Commit 9f0adb9

Browse files
authored
mirror-nixos-branch: omit minimal ISOs from small channels (#74)
1 parent 809d960 commit 9f0adb9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

mirror-nixos-branch.pl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,12 @@ sub fetch {
214214
downloadFile("nixpkgs.tarball", "packages.json.br", "json-br");
215215
downloadFile("nixos.options", "options.json.br", "json-br");
216216

217-
downloadFile("nixos.iso_minimal.aarch64-linux");
218-
downloadFile("nixos.iso_minimal.x86_64-linux");
217+
# Minimal installer ISOs were dropped from the small channel
218+
if ($channelName !~ /-small/ ||
219+
$channelName =~ /nixos-2([0123]\...|4\.05)-small/) {
220+
downloadFile("nixos.iso_minimal.aarch64-linux");
221+
downloadFile("nixos.iso_minimal.x86_64-linux");
222+
}
219223

220224
# All of these jobs are not present in small channels
221225
if ($channelName !~ /-small/) {

0 commit comments

Comments
 (0)