Skip to content

Commit 75f25fd

Browse files
committed
tarball-mirror: remove global lib import
1 parent fc8eaa1 commit 75f25fd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

modules/tarball-mirror.nix

Lines changed: 2 additions & 5 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 =
2421
assert (lib.assertMsg (lib.length branches == 1) "Multiple primary releases are marked as stable");
25-
head branches;
22+
lib.head branches;
2623
in
2724

2825
{

0 commit comments

Comments
 (0)