aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 23360de2e..fce3cab8d 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -30,6 +30,10 @@ struct Sink;
struct Source;
+/* The system for which Nix is compiled. */
+extern const std::string nativeSystem;
+
+
/* Return an environment variable. */
string getEnv(const string & key, const string & def = "");
@@ -263,6 +267,9 @@ string runProgram(Path program, bool searchPath = false,
struct RunOptions
{
+ std::optional<uid_t> uid;
+ std::optional<uid_t> gid;
+ std::optional<Path> chdir;
Path program;
bool searchPath = true;
Strings args;