Skip to content

Commit ebe6f18

Browse files
committed
Restore old copy behavior for nixos-22.05
Was prematurely removed in the previous commit.
1 parent 368edf6 commit ebe6f18

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

mirror-nixos-branch.pl

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,31 @@ sub fetch {
209209
}
210210
}
211211

212-
if ($channelName =~ /nixos/) {
212+
if ($channelName =~ /nixos-22.05/) {
213+
my $arch = "x86_64-linux";
214+
if ($channelName =~ /-aarch64/) {
215+
$arch = "aarch64-linux";
216+
}
217+
218+
downloadFile("nixos.channel", "nixexprs.tar.xz");
219+
downloadFile("nixos.iso_minimal.$arch");
220+
downloadFile("nixpkgs.tarball", "packages.json.br", "json-br");
221+
222+
# Only built on the main channel (x86_64-linux)
223+
if ($arch eq "x86_64-linux") {
224+
downloadFile("nixos.options", "options.json.br", "json-br");
225+
}
226+
227+
# All of these paths are x86-specific only and are not in small channels
228+
if ($arch eq "x86_64-linux" and $channelName !~ /-small/) {
229+
downloadFile("nixos.iso_plasma5.$arch");
230+
downloadFile("nixos.iso_gnome.$arch");
231+
232+
downloadFile("nixos.iso_minimal.i686-linux");
233+
downloadFile("nixos.ova.$arch");
234+
}
235+
236+
} elsif ($channelName =~ /nixos/) {
213237
downloadFile("nixos.channel", "nixexprs.tar.xz");
214238
downloadFile("nixpkgs.tarball", "packages.json.br", "json-br");
215239
downloadFile("nixos.options", "options.json.br", "json-br");

0 commit comments

Comments
 (0)