diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2019-05-06 16:42:34 +0200 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2019-05-07 22:08:04 +0200 |
commit | 0f9653f7ed83494630f8a024a4ca219ed882ec7f (patch) | |
tree | 7a62309a23d4fede356cb2c46244f769d7856ed6 /doc | |
parent | 0d00b0b646b7a3c909631354adc16ae07be44bc8 (diff) |
doc/stdenv: put note about remote builds with breakpointHook into a <note>
With remote builds, the sandbox can't be accessed by `cntr` as it is on a different machine. I decided to put this into an extra `note` block as it took me admittedly too much time to figure this out.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/stdenv.xml | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/doc/stdenv.xml b/doc/stdenv.xml index 0435362306ba3..63e6450860acf 100644 --- a/doc/stdenv.xml +++ b/doc/stdenv.xml @@ -2643,9 +2643,7 @@ addEnvHooks "$hostOffset" myBashFunction At <filename>/var/lib/cntr</filename> the sandboxed filesystem is mounted. All commands and files of the system are still accessible within the shell. To execute commands from the sandbox use the cntr exec - subcommand. Note that <command>cntr</command> also needs to be executed - on the machine that is doing the build, which might not be the case when - remote builders are enabled. <command>cntr</command> is only supported + subcommand. <command>cntr</command> is only supported on Linux-based platforms. To use it first add <literal>cntr</literal> to your <literal>environment.systemPackages</literal> on NixOS or alternatively to the root user on non-NixOS systems. Then in the package @@ -2657,6 +2655,16 @@ addEnvHooks "$hostOffset" myBashFunction When a build failure happens there will be an instruction printed that shows how to attach with <literal>cntr</literal> to the build sandbox. </para> + <note> + <title>Caution with remote builds</title> + <para> + This won't work with remote builds as the build environment is on + a different machine and can't be accessed by <command>cntr</command>. + Remote builds can be turned off by setting <literal>--option builders ''</literal> + for <command>nix-build</command> or <literal>--builders ''</literal> for + <command>nix build</command>. + </para> + </note> </listitem> </varlistentry> <varlistentry> |