lix/src/libstore/exec.hh
Eelco Dolstra a5619f1dff * Set the NIX_STORE and NIX_BUILD_TOP environment variables in
builders to point to the store and the temporary build directory,
  respectively.  Useful for purity checking.
* Also set TEMPDIR, TMPDIR, TEMP, and TEMP to NIX_BUILD_TOP to make
  sure that tools in the builder store temporary files in the right
  location.
2004-03-12 10:45:08 +00:00

23 lines
381 B
C++

#ifndef __EXEC_H
#define __EXEC_H
#include <string>
#include <map>
#include "util.hh"
using namespace std;
/* A Unix environment is a mapping from strings to strings. */
typedef map<string, string> Environment;
/* Run a program. */
void runProgram(const string & program,
const Strings & args, Environment env,
const string & logFileName);
#endif /* !__EXEC_H */