mirror of
https://github.com/NixOS/nix.git
synced 2025-11-25 19:51:00 +01:00
At this point many features are stripped out, but this works:
- Can run libnix{util,store,expr} unit tests
- Can run some Nix commands
Co-Authored-By volth <volth@volth.com>
Co-Authored-By Brian McKenna <brian@brianmckenna.org>
17 lines
274 B
C++
17 lines
274 B
C++
#include "environment-variables.hh"
|
|
|
|
#include "processenv.h"
|
|
|
|
namespace nix {
|
|
|
|
int unsetenv(const char *name)
|
|
{
|
|
return -SetEnvironmentVariableA(name, nullptr);
|
|
}
|
|
|
|
int setEnv(const char * name, const char * value)
|
|
{
|
|
return -SetEnvironmentVariableA(name, value);
|
|
}
|
|
|
|
}
|