Stop updating nixpkgs-channels for NixOS >= 20.09

https://github.com/NixOS/nixpkgs/issues/99257
This commit is contained in:
Eelco Dolstra 2020-10-02 22:11:02 +02:00
parent 940d71c32d
commit 7c442a2f67

View file

@ -317,11 +317,14 @@ if ($dryRun) {
exit(0);
}
# Update the nixos-* branch in the nixpkgs repo. Also update the
# nixpkgs-channels repo for compatibility.
# Update the nixos-* branch in the nixpkgs repo.
run("git remote update origin >&2");
run("git push origin $rev:refs/heads/$channelName >&2");
run("git push channels $rev:refs/heads/$channelName >&2");
# Also update the nixpkgs-channels repo for compatibility.
if ($channelName =~ /20.03/ || $channelName =~ /19.09/) {
run("git push channels $rev:refs/heads/$channelName >&2");
}
sub redirect {
my ($from, $to) = @_;