mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 14:36:16 +02:00
parent
c3c23a52ee
commit
1789c56f43
2 changed files with 4 additions and 1 deletions
|
@ -4,6 +4,8 @@
|
||||||
#include "nixexpr.hh"
|
#include "nixexpr.hh"
|
||||||
#include "profiles.hh"
|
#include "profiles.hh"
|
||||||
|
|
||||||
|
extern char * * environ;
|
||||||
|
|
||||||
namespace nix {
|
namespace nix {
|
||||||
|
|
||||||
Commands * RegisterCommand::commands = nullptr;
|
Commands * RegisterCommand::commands = nullptr;
|
||||||
|
@ -175,6 +177,7 @@ void MixEnvironment::setEnviron() {
|
||||||
auto val = getenv(var.c_str());
|
auto val = getenv(var.c_str());
|
||||||
if (val) stringsEnv.emplace_back(fmt("%s=%s", var.c_str(), val));
|
if (val) stringsEnv.emplace_back(fmt("%s=%s", var.c_str(), val));
|
||||||
}
|
}
|
||||||
|
|
||||||
vectorEnv = stringsToCharPtrs(stringsEnv);
|
vectorEnv = stringsToCharPtrs(stringsEnv);
|
||||||
environ = vectorEnv.data();
|
environ = vectorEnv.data();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -10,7 +10,7 @@ namespace nix {
|
||||||
struct Value;
|
struct Value;
|
||||||
struct DrvInfo;
|
struct DrvInfo;
|
||||||
class EvalState;
|
class EvalState;
|
||||||
class SourceExprCommand;
|
struct SourceExprCommand;
|
||||||
|
|
||||||
struct Buildable
|
struct Buildable
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue