mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +02:00
diff hook: execute as the build user, and pass the temp dir
This commit is contained in:
parent
c78686e411
commit
6df61db060
5 changed files with 51 additions and 28 deletions
|
@ -252,13 +252,11 @@ false</literal>.</para>
|
|||
same.
|
||||
</para>
|
||||
|
||||
<warning>
|
||||
<para>
|
||||
The root user executes the diff hook in a daemonised
|
||||
installation. See <xref linkend="chap-diff-hook" /> for
|
||||
information on using the diff hook safely.
|
||||
</para>
|
||||
</warning>
|
||||
<para>
|
||||
The diff hook is executed by the same user and group who ran the
|
||||
build. However, the diff hook does not have write access to the
|
||||
store path just built.
|
||||
</para>
|
||||
|
||||
<para>The diff hook program receives three parameters:</para>
|
||||
|
||||
|
@ -280,6 +278,14 @@ false</literal>.</para>
|
|||
The path to the build's derivation
|
||||
</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>
|
||||
The path to the build's scratch directory. This directory
|
||||
will exist only if the build was run with
|
||||
<option>--keep-failed</option>.
|
||||
</para>
|
||||
</listitem>
|
||||
</orderedlist>
|
||||
|
||||
<para>The diff hook should not print data to stderr or stdout, as
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue