mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
0c16b00cbd
- Remove handleOptionSets which used option declarations & definitions in the same set. - Add a traversal of modules where "config" and "options" are traverse at the same time. This allow to have accruate error messages with the incriminated files playing a role in the error. This system add a new restriction compare to the previous system: - A module with no structure (option definitions & option declarations & require) should not contain any option declarations. If such module exists you must convert it to the following form: { imports = <content of the require attribute>; options = <set of option declarations>; config = <set of option definitions>; } svn path=/nixpkgs/trunk/; revision=17163
27 lines
923 B
Nix
27 lines
923 B
Nix
let
|
|
|
|
trivial = import ./trivial.nix;
|
|
lists = import ./lists.nix;
|
|
strings = import ./strings.nix;
|
|
stringsWithDeps = import ./strings-with-deps.nix;
|
|
attrsets = import ./attrsets.nix;
|
|
sources = import ./sources.nix;
|
|
modules = import ./modules.nix;
|
|
options = import ./options.nix;
|
|
properties = import ./properties.nix;
|
|
types = import ./types.nix;
|
|
meta = import ./meta.nix;
|
|
debug = import ./debug.nix;
|
|
misc = import ./misc.nix;
|
|
maintainers = import ./maintainers.nix;
|
|
platforms = import ./platforms.nix;
|
|
|
|
in
|
|
{ inherit trivial lists strings stringsWithDeps attrsets sources options
|
|
properties modules types meta debug maintainers platforms;
|
|
}
|
|
# !!! don't include everything at top-level; perhaps only the most
|
|
# commonly used functions.
|
|
// trivial // lists // strings // stringsWithDeps // attrsets // sources
|
|
// properties // options // types // meta // debug // misc // modules
|