tarball-mirror: remove global lib import
Martin Weinelt committed
May 23, 2025 at 21:04 UTC
75f25fda754b0cb24c8a7a8eff7753652d85e5a2
1 file changed
+2
-5
modules/tarball-mirror.nix
+2
-5
@@ -9,12 +9,9 @@
9
...
10
}:
11
12
-with lib;
13
-
12
let
13
# 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.
15
branches = lib.filter (p: p != null) (
16
lib.mapAttrsToList (
17
name: v: if v.variant or null == "primary" && v.status or null == "stable" then name else null
@@ -22,7 +19,7 @@ let
19
);
20
branch =
21
assert (lib.assertMsg (lib.length branches == 1) "Multiple primary releases are marked as stable");
25
- head branches;
22
+ lib.head branches;
23
in
24
25
{