mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 06:42:28 +00:00
libexpr: Squash similar conditions
Signed-off-by: Pamplemousse <xav.maso@gmail.com>
This commit is contained in:
parent
d64cb33e90
commit
2de7a1fe67
@ -3645,9 +3645,7 @@ void EvalState::createBaseEnv()
|
||||
if (!evalSettings.pureEval) {
|
||||
mkInt(v, time(0));
|
||||
addConstant("__currentTime", v);
|
||||
}
|
||||
|
||||
if (!evalSettings.pureEval) {
|
||||
mkString(v, settings.thisSystem.get());
|
||||
addConstant("__currentSystem", v);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user