1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 21:01:16 +02:00

Fixed issue #13

This commit is contained in:
Nick Van den Broeck 2019-03-21 09:30:16 +01:00
parent e6109ec765
commit 24b35bf9e7
6 changed files with 31 additions and 12 deletions

View file

@ -63,6 +63,8 @@ typedef std::list<SearchPathElem> SearchPath;
/* Initialise the Boehm GC, if applicable. */
void initGC();
typedef std::vector<std::pair<std::string, std::string>> RegistryOverrides;
class EvalState
{
@ -89,6 +91,9 @@ public:
const ref<Store> store;
RegistryOverrides registryOverrides;
private:
SrcToStore srcToStore;
@ -211,6 +216,8 @@ public:
path. Nothing is copied to the store. */
Path coerceToPath(const Pos & pos, Value & v, PathSet & context);
void addRegistryOverrides(RegistryOverrides overrides) { registryOverrides = overrides; }
public:
/* The base environment, containing the builtin functions and