lib/default.nix: reorder imports for clarity

Group imports according to the kind of functions they contain, in a more
descriptive manner.
This commit is contained in:
Profpatsch 2016-09-15 01:21:42 +02:00
parent 7b65daaab4
commit bd44207786

View File

@ -1,27 +1,45 @@
let let
# trivial, often used functions
trivial = import ./trivial.nix; trivial = import ./trivial.nix;
# datatypes
attrsets = import ./attrsets.nix;
lists = import ./lists.nix; lists = import ./lists.nix;
strings = import ./strings.nix; strings = import ./strings.nix;
stringsWithDeps = import ./strings-with-deps.nix; stringsWithDeps = import ./strings-with-deps.nix;
attrsets = import ./attrsets.nix;
# packaging
customisation = import ./customisation.nix;
maintainers = import ./maintainers.nix;
meta = import ./meta.nix;
sources = import ./sources.nix; sources = import ./sources.nix;
# module system
modules = import ./modules.nix; modules = import ./modules.nix;
options = import ./options.nix; options = import ./options.nix;
types = import ./types.nix; types = import ./types.nix;
meta = import ./meta.nix;
debug = import ./debug.nix; # constants
misc = import ./deprecated.nix; licenses = import ./licenses.nix;
maintainers = import ./maintainers.nix;
platforms = import ./platforms.nix; platforms = import ./platforms.nix;
systems = import ./systems.nix; systems = import ./systems.nix;
customisation = import ./customisation.nix;
licenses = import ./licenses.nix; # misc
debug = import ./debug.nix;
misc = import ./deprecated.nix;
# domain-specific
sandbox = import ./sandbox.nix; sandbox = import ./sandbox.nix;
in in
{ inherit trivial lists strings stringsWithDeps attrsets sources options { inherit trivial
modules types meta debug maintainers licenses platforms systems sandbox; attrsets lists strings stringsWithDeps
customisation maintainers meta sources
modules options types
licenses platforms systems
debug misc
sandbox;
} }
# !!! don't include everything at top-level; perhaps only the most # !!! don't include everything at top-level; perhaps only the most
# commonly used functions. # commonly used functions.