diff --git a/doc/manual/nix-build.xml b/doc/manual/nix-build.xml
index a11ed0a97..fe014ffef 100644
--- a/doc/manual/nix-build.xml
+++ b/doc/manual/nix-build.xml
@@ -28,7 +28,7 @@
attrPath
- drvlink
+ drvlink
@@ -38,6 +38,11 @@
outlink
+
+
+ cmd
+ regexp
+ paths
@@ -70,6 +75,13 @@ a root of the Nix garbage collector. This root disappears
automatically when the result symlink is deleted
or renamed. So don’t rename the symlink.
+The subcommand nix-build --run-env will build
+the dependencies of the derivation, but not the derivation itself. It
+will then start an interactive shell in which all environment
+variables defined by the derivation have been set to their
+corresponding values. This is useful for reproducing the environment
+of a derivation for development.
+
@@ -126,6 +138,28 @@ also .
+The following options apply to nix-build --run-env.
+
+
+
+ cmd
+
+ In the environment of the derivation, executeq the
+ command cmd instead of the default
+ interactive shell.
+
+
+
+ regexp
+
+ Do not build any dependencies whose store path
+ matches the regular expression regexp.
+ This option may be specified multiple times.
+
+
+
+
+
@@ -142,6 +176,21 @@ lrwxrwxrwx ... result -> /nix/store/d18hyl92g30l...
$ ls ./result/bin/
firefox firefox-config
+To build the dependencies of the package Pan, and start an
+interactive shell in which to build it:
+
+
+$ nix-build '<nixpkgs>' --run-env -A pan
+$ tar xf $src
+$ cd pan-*
+$ ./configure
+$ make
+$ ./pan/gui/pan
+
+
+
+
+