diff options
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r-- | src/libexpr/primops.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index 9d18dc54ebcd..9723cdfd247b 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -1507,12 +1507,15 @@ void EvalState::createBaseEnv() mkInt(v, time(0)); addConstant("__currentTime", v); - mkString(v, settings.thisSystem.c_str()); + mkString(v, settings.thisSystem); addConstant("__currentSystem", v); - mkString(v, nixVersion.c_str()); + mkString(v, nixVersion); addConstant("__nixVersion", v); + mkString(v, settings.nixStore); + addConstant("__storeDir", v); + /* Language version. This should be increased every time a new language feature gets added. It's not necessary to increase it when primops get added, because you can just use `builtins ? |