Merge pull request #9183 from nbp/option-usage

Update option-usages.nix expression to work with newer version of the module system.
This commit is contained in:
Nicolas B. Pierron
2015-08-15 12:29:32 +02:00
3 changed files with 138 additions and 42 deletions

View File

@@ -55,7 +55,7 @@ rec {
};
};
closed = closeModules (modules ++ [ internalModule ]) (specialArgs // { inherit config options; lib = import ./.; });
closed = closeModules (modules ++ [ internalModule ]) ({ inherit config options; lib = import ./.; } // specialArgs);
# Note: the list of modules is reversed to maintain backward
# compatibility with the old module system. Not sure if this is