Skip to content

Commit 73365a9

Browse files
committed
lib: cleanup
1 parent 10aed2e commit 73365a9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

flake.nix

+5-3
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@
1818
let
1919
lib = builtins // nixpkgs.lib // parts.lib;
2020
inherit (lib)
21+
assertMsg
2122
attrByPath
2223
attrNames
2324
concatMapStrings
2425
elem
2526
evalFlakeModule
2627
filter
28+
intersectLists
2729
listToAttrs
2830
makeExtensible
2931
map
@@ -147,13 +149,13 @@
147149
# extensions = [ ... ];
148150
# };
149151
finalLib =
150-
if cfg.lib.enable && (lib.assertMsg (cfg.lib.extender ? extend) "the extender provide does not have a `extend` function") then
152+
if cfg.lib.enable && (assertMsg (cfg.lib.extender ? extend) "the extender provide does not have a `extend` function") then
151153
cfg.lib.extender.extend
152154
(final: prev: mergeAttrsList (
153155
# builtins
154156
[
155-
(lib.removeAttrs builtins (
156-
lib.intersectLists (lib.attrNames cfg.lib.extender) (lib.attrNames builtins)
157+
(removeAttrs builtins (
158+
intersectLists (attrNames cfg.lib.extender) (attrNames builtins)
157159
))
158160
]
159161
++

0 commit comments

Comments
 (0)