mirror of
https://github.com/NixOS/nix.git
synced 2025-11-20 17:29:36 +01:00
Add poor man's module system
This commit is contained in:
parent
38b339d447
commit
13735a63b4
3 changed files with 52 additions and 1 deletions
|
|
@ -2416,6 +2416,10 @@ void EvalState::createBaseEnv()
|
|||
evalFile(path, v);
|
||||
addConstant("derivation", v);
|
||||
|
||||
path = canonPath(settings.nixDataDir + "/nix/corepkgs/module.nix", true);
|
||||
evalFile(path, v);
|
||||
addConstant("module", v);
|
||||
|
||||
/* Add a value containing the current Nix expression search path. */
|
||||
mkList(v, searchPath.size());
|
||||
int n = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue