diff options
author | Christian Theune <ct@flyingcircus.io> | 2015-05-19T18·03+0200 |
---|---|---|
committer | Christian Theune <ct@flyingcircus.io> | 2015-05-19T18·03+0200 |
commit | ea39c98d419a816029299b99f70455798e66f6b7 (patch) | |
tree | 9cdea14533783e93e0c7b1a4972bb6c58adb5edf /src/nix-env/user-env.cc | |
parent | 3d8318870289d7b6b08677fcd2da6ceb0b082f8c (diff) |
Implement alternative to lazy generations:
* only the last generation can be lazy * depend on the '--lazy-generation' flag to be set
Diffstat (limited to 'src/nix-env/user-env.cc')
-rw-r--r-- | src/nix-env/user-env.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix-env/user-env.cc b/src/nix-env/user-env.cc index 3bc31b9eafeb..43db6b513e1d 100644 --- a/src/nix-env/user-env.cc +++ b/src/nix-env/user-env.cc @@ -28,7 +28,7 @@ DrvInfos queryInstalled(EvalState & state, const Path & userEnv) bool createUserEnv(EvalState & state, DrvInfos & elems, const Path & profile, bool keepDerivations, - const string & lockToken) + const string & lockToken, bool lazyGeneration) { /* Build the components in the user environment, if they don't exist already. */ @@ -141,7 +141,7 @@ bool createUserEnv(EvalState & state, DrvInfos & elems, } debug(format("switching to new user environment")); - Path generation = createGeneration(profile, topLevelOut); + Path generation = createGeneration(profile, topLevelOut, lazyGeneration); switchLink(profile, generation); return true; |