Skip to content

Commit 8f83749

Browse files
authored
Merge pull request #695 from NixOS/tarball-mirror
tarball-mirror: various fixes
2 parents 8ba4567 + 75f25fd commit 8f83749

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

modules/tarball-mirror.nix

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,17 @@
99
...
1010
}:
1111

12-
with lib;
13-
1412
let
1513
# Determine the NixPkgs branch to mirror from.
16-
# We take the current pirmary stable release.
17-
inherit (import ../channels.nix) channels;
14+
# We take the current primary stable release.
1815
branches = lib.filter (p: p != null) (
1916
lib.mapAttrsToList (
2017
name: v: if v.variant or null == "primary" && v.status or null == "stable" then name else null
2118
) (import ../channels.nix).channels
2219
);
2320
branch =
24-
assert lib.length branches == 1;
25-
head branches;
21+
assert (lib.assertMsg (lib.length branches == 1) "Multiple primary releases are marked as stable");
22+
lib.head branches;
2623
in
2724

2825
{

0 commit comments

Comments
 (0)