modules: add support for module replacement with disabledModules

This is based on a prototype Nicolas B. Pierron worked on during a
discussion we had at FOSDEM.

A new version with a workaround for problems of the reverted original.
Discussion: https://github.com/NixOS/nixpkgs/commit/3f2566689
This commit is contained in:
Daiderd Jordan
2017-03-03 13:45:22 +01:00
committed by Vladimír Čunát
parent bb9a37a2a5
commit d88721e440
9 changed files with 127 additions and 7 deletions
+1
View File
@@ -3,5 +3,6 @@
{
inherit (lib.evalModules {
inherit modules;
specialArgs.modulesPath = ./.;
}) config options;
}