mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-14 18:26:16 +02:00
8433027e35
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);
|
|
}
|
|
|
|
}
|