lib/modules.nix: Move comment to the actual legacy code

Changed files
+4 -3
lib
+4 -3
lib/modules.nix
···
compare = a: b: (a.priority or 1000) < (b.priority or 1000);
in sort compare defs';
-
/* Hack for backward compatibility: convert options of type
-
optionSet to options of type submodule. FIXME: remove
-
eventually. */
fixupOptionType = loc: opt:
let
options = opt.options or
(throw "Option `${showOption loc}' has type optionSet but has no option attribute, in ${showFiles opt.declarations}.");
f = tp:
let optionSetIn = type: (tp.name == type) && (tp.functor.wrapped.name == "optionSet");
in
···
compare = a: b: (a.priority or 1000) < (b.priority or 1000);
in sort compare defs';
fixupOptionType = loc: opt:
let
options = opt.options or
(throw "Option `${showOption loc}' has type optionSet but has no option attribute, in ${showFiles opt.declarations}.");
+
+
# Hack for backward compatibility: convert options of type
+
# optionSet to options of type submodule. FIXME: remove
+
# eventually.
f = tp:
let optionSetIn = type: (tp.name == type) && (tp.functor.wrapped.name == "optionSet");
in