blob: c813c8b9a83b88d16cd3ed4ed55c8db8065999dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{
inputs,
lib,
pkgs,
config,
...
}: {
options.mnw = lib.mkOption {
type = lib.types.submoduleWith {
specialArgs = {
inherit pkgs;
modulesPath = toString (inputs.mnw + /modules);
};
modules = [
(inputs.mnw + /modules/options.nix)
];
};
default = {};
description = ''
Internal options passed directly to mnw itself.
'';
};
config = {
warnings = map (warning: "mnw: ${warning}") config.mnw.warnings;
assertions =
map (assertion: {
inherit (assertion) assertion;
message = "mnw: ${assertion.message}";
})
config.mnw.assertions;
mnw.finalPackage = inputs.mnw.lib.uncheckedWrap pkgs config.mnw;
};
}
|