about summary refs log tree commit diff
path: root/src/libnix/exec.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-10-22T11·04+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-10-22T11·04+0000
commit9d95aafe8ccf9d037dc97bb875bc62b919d8b123 (patch)
treef8698c805f73f8f75c4614e23af2608d09097f97 /src/libnix/exec.hh
parent143427f90b9b54bd957cd50a2110157ddfedeeaf (diff)
* Ad hoc per-package logging. When Nix performs a derivation, it now
  writes stdout/stderr of the builder to ${prefix}/var/log/nix/x,
  where x is the file name of the derivation expression, e.g.,

    /nix/var/log/nix/54256391624be04fcb426048ae3ea0a4-d-pan-0.14.2.nix

  Note that consecutive builds of the same expression overwrite,
  rather than append to, existing log files.

Diffstat (limited to 'src/libnix/exec.hh')
-rw-r--r--src/libnix/exec.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libnix/exec.hh b/src/libnix/exec.hh
index 8d410e404383..fc5bd6ac8d0b 100644
--- a/src/libnix/exec.hh
+++ b/src/libnix/exec.hh
@@ -15,7 +15,8 @@ typedef map<string, string> Environment;
 
 /* Run a program. */
 void runProgram(const string & program, 
-    const Strings & args, const Environment & env);
+    const Strings & args, const Environment & env,
+    const string & logFileName);
 
 
 #endif /* !__EXEC_H */