diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-12-04 00:36:04 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-12-04 00:36:04 +0100 |
commit | 1789c56f430b935ac2c17153317947a7fcf4f07f (patch) | |
tree | dcab637bedb5a7a7ba5c515c8f5b6815ef4a51a6 | |
parent | c3c23a52ee1c5844343bc5ed075791ec7fec6413 (diff) |
Fix macOS build
https://hydra.nixos.org/build/107716759
-rw-r--r-- | src/nix/command.cc | 3 | ||||
-rw-r--r-- | src/nix/installables.hh | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/nix/command.cc b/src/nix/command.cc index de761166b..2da5736e7 100644 --- a/src/nix/command.cc +++ b/src/nix/command.cc @@ -4,6 +4,8 @@ #include "nixexpr.hh" #include "profiles.hh" +extern char * * environ; + namespace nix { Commands * RegisterCommand::commands = nullptr; @@ -175,6 +177,7 @@ void MixEnvironment::setEnviron() { auto val = getenv(var.c_str()); if (val) stringsEnv.emplace_back(fmt("%s=%s", var.c_str(), val)); } + vectorEnv = stringsToCharPtrs(stringsEnv); environ = vectorEnv.data(); } else { diff --git a/src/nix/installables.hh b/src/nix/installables.hh index 9388c673e..612c8ac92 100644 --- a/src/nix/installables.hh +++ b/src/nix/installables.hh @@ -10,7 +10,7 @@ namespace nix { struct Value; struct DrvInfo; class EvalState; -class SourceExprCommand; +struct SourceExprCommand; struct Buildable { |