You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/modules.nix
+19-18Lines changed: 19 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -2,20 +2,16 @@
2
2
lib,
3
3
self,
4
4
}:
5
-
rec{
6
-
# Minimal specialArgs required to evaluate nixvim modules
7
-
specialArgs=specialArgsWith{};
8
-
9
-
# Build specialArgs for evaluating nixvim modules
10
-
specialArgsWith=
11
-
extraSpecialArgs:
12
-
{
13
-
inheritlib;
14
-
# TODO: deprecate `helpers`
15
-
helpers=self;
16
-
}
17
-
//extraSpecialArgs;
18
-
5
+
let
6
+
removed={
7
+
# Removed 2024-09-24
8
+
getAssertionMessages="";
9
+
# Removed 2024-09-27
10
+
specialArgs="It has been integrated into `evalNixvim`";
11
+
specialArgsWith="It has been integrated into `evalNixvim`";
12
+
};
13
+
in
14
+
{
19
15
# Evaluate nixvim modules, checking warnings and assertions
20
16
evalNixvim=
21
17
{
@@ -29,9 +25,14 @@ rec {
29
25
"`evalNixvim`: passing `check` is no longer supported. Checks are now done when evaluating `config.build.package` and can be avoided by using `config.build.packageUnchecked` instead.";
30
26
lib.evalModules{
31
27
modules=[../modules/top-level]++modules;
32
-
specialArgs=specialArgsWithextraSpecialArgs;
28
+
specialArgs={
29
+
inheritlib;
30
+
# TODO: deprecate `helpers`
31
+
helpers=self;
32
+
}//extraSpecialArgs;
33
33
};
34
-
35
-
# TODO: Removed 2024-09-24
36
-
getAssertionMessages=throw"`modules.getAssertionMessages` has been removed.";
37
34
}
35
+
//lib.mapAttrs(
36
+
name: msg:
37
+
throw("`modules.${name}` has been removed."+lib.optionalString(msg!="")(" "+msg))
0 commit comments