diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc index e1483e8ac19..764eaf8c269 100644 --- a/src/libstore/globals.cc +++ b/src/libstore/globals.cc @@ -74,8 +74,7 @@ Settings settings; static GlobalConfig::Register rSettings(&settings); Settings::Settings() - : nixPrefix(NIX_PREFIX) - , nixStore( + : nixStore( #ifndef _WIN32 // On Windows `/nix/store` is not a canonical path, but we dont' // want to deal with that yet. diff --git a/src/libstore/include/nix/store/globals.hh b/src/libstore/include/nix/store/globals.hh index 6d61442fe68..b4f1e4324c4 100644 --- a/src/libstore/include/nix/store/globals.hh +++ b/src/libstore/include/nix/store/globals.hh @@ -79,8 +79,6 @@ public: static unsigned int getDefaultCores(); - Path nixPrefix; - /** * The directory where we store sources and derived files. */ diff --git a/src/libstore/meson.build b/src/libstore/meson.build index c0732d22de0..b8bc00c8972 100644 --- a/src/libstore/meson.build +++ b/src/libstore/meson.build @@ -251,7 +251,6 @@ endif # Aside from prefix itself, each of these was made into an absolute path # by joining it with prefix, unless it was already an absolute path # (which is the default for store-dir, localstatedir, and log-dir). -configdata_priv.set_quoted('NIX_PREFIX', prefix) configdata_priv.set_quoted('NIX_STORE_DIR', store_dir) configdata_priv.set_quoted('NIX_DATA_DIR', datadir) configdata_priv.set_quoted('NIX_STATE_DIR', localstatedir / 'nix')