aboutsummaryrefslogtreecommitdiff
path: root/doc/stdenv
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2020-09-20 01:15:58 +0200
committerJan Tojnar <jtojnar@gmail.com>2020-09-20 20:12:33 +0200
commit0c5ddf335836c521215ecc9bfbb07ba45256a7df (patch)
tree5e47d4482c577fffb62194aea74bac9d134a929b /doc/stdenv
parentc1b05442ffd6cf3cf529cad469bebe8169b156e9 (diff)
maintainers/scripts/update.nix: run update script with UPDATE_NIX_ATTR_PATH
The environment variable will contain the attribute path the script is supposed to update.
Diffstat (limited to 'doc/stdenv')
-rw-r--r--doc/stdenv/stdenv.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/stdenv/stdenv.xml b/doc/stdenv/stdenv.xml
index d33ee382d0b5..6b74e96aad55 100644
--- a/doc/stdenv/stdenv.xml
+++ b/doc/stdenv/stdenv.xml
@@ -475,6 +475,7 @@ passthru.updateScript = writeScript "update-zoom-us" ''
<programlisting>
passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ];
</programlisting>
+ The script will be run with <variable>UPDATE_NIX_ATTR_PATH</variable> environment variable set to the attribute path it is supposed to update.
<note>
<para>
The script will be usually run from the root of the Nixpkgs repository but you should not rely on that. Also note that the update scripts will be run in parallel by default; you should avoid running <command>git commit</command> or any other commands that cannot handle that.