We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8ba4567 + 75f25fd commit 8f83749Copy full SHA for 8f83749
modules/tarball-mirror.nix
@@ -9,20 +9,17 @@
9
...
10
}:
11
12
-with lib;
13
-
14
let
15
# Determine the NixPkgs branch to mirror from.
16
- # We take the current pirmary stable release.
17
- inherit (import ../channels.nix) channels;
+ # We take the current primary stable release.
18
branches = lib.filter (p: p != null) (
19
lib.mapAttrsToList (
20
name: v: if v.variant or null == "primary" && v.status or null == "stable" then name else null
21
) (import ../channels.nix).channels
22
);
23
branch =
24
- assert lib.length branches == 1;
25
- head branches;
+ assert (lib.assertMsg (lib.length branches == 1) "Multiple primary releases are marked as stable");
+ lib.head branches;
26
in
27
28
{
0 commit comments