summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-10-07 18:01:44 +0000
committerGitHub <noreply@github.com>2021-10-07 18:01:44 +0000
commitc081bc394ca934a361c7e15f782171a03f2f80a0 (patch)
tree0f467c6d1ebee6fe818cf9e8690debb8fed8efab /doc
parent643f23ffe53911d7db2020a20bd40e0d6cdfdd96 (diff)
parent471980fd33961a6b893041774a9633811d03354f (diff)
downloadnixpkgs-c081bc394ca934a361c7e15f782171a03f2f80a0.tar
nixpkgs-c081bc394ca934a361c7e15f782171a03f2f80a0.tar.gz
nixpkgs-c081bc394ca934a361c7e15f782171a03f2f80a0.tar.bz2
nixpkgs-c081bc394ca934a361c7e15f782171a03f2f80a0.tar.lz
nixpkgs-c081bc394ca934a361c7e15f782171a03f2f80a0.tar.xz
nixpkgs-c081bc394ca934a361c7e15f782171a03f2f80a0.tar.zst
nixpkgs-c081bc394ca934a361c7e15f782171a03f2f80a0.zip
Merge staging-next into staging
Diffstat (limited to 'doc')
-rw-r--r--doc/stdenv/stdenv.chapter.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/stdenv/stdenv.chapter.md b/doc/stdenv/stdenv.chapter.md
index 9befcaa51a9..02042407f6c 100644
--- a/doc/stdenv/stdenv.chapter.md
+++ b/doc/stdenv/stdenv.chapter.md
@@ -373,11 +373,11 @@ Additional file types can be supported by setting the `unpackCmd` variable (see
 
 ##### `srcs` / `src` {#var-stdenv-src}
 
-The list of source files or directories to be unpacked or copied. One of these must be set.
+The list of source files or directories to be unpacked or copied. One of these must be set. Note that if you use `srcs`, you should also set `sourceRoot` or `setSourceRoot`.
 
 ##### `sourceRoot` {#var-stdenv-sourceRoot}
 
-After running `unpackPhase`, the generic builder changes the current directory to the directory created by unpacking the sources. If there are multiple source directories, you should set `sourceRoot` to the name of the intended directory.
+After running `unpackPhase`, the generic builder changes the current directory to the directory created by unpacking the sources. If there are multiple source directories, you should set `sourceRoot` to the name of the intended directory. Set `sourceRoot = ".";` if you use `srcs` and control the unpack phase yourself.
 
 ##### `setSourceRoot` {#var-stdenv-setSourceRoot}