diff options
author | José Romildo <malaquias@gmail.com> | 2022-09-26 21:40:42 -0300 |
---|---|---|
committer | José Romildo <malaquias@gmail.com> | 2022-09-26 22:16:19 -0300 |
commit | 1f239257c536b461bbed049e6bc90ac5fa096ac8 (patch) | |
tree | 8cd0b1177ecf5d9bcb4869b0ff1795f73e352789 /doc | |
parent | ea4a87537cfdc83eebcd1804a5ec51057018784f (diff) |
maintainers/scripts/update.nix: make package name, pname and old version available to the update script
Diffstat (limited to 'doc')
-rw-r--r-- | doc/stdenv/stdenv.chapter.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/stdenv/stdenv.chapter.md b/doc/stdenv/stdenv.chapter.md index 93351ce1bdb3..e87ab4727077 100644 --- a/doc/stdenv/stdenv.chapter.md +++ b/doc/stdenv/stdenv.chapter.md @@ -309,7 +309,7 @@ The attribute can also contain a list, a script followed by arguments to be pass passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ]; ``` -The script will be run with `UPDATE_NIX_ATTR_PATH` environment variable set to the attribute path it is supposed to update. +The script will be run with the `UPDATE_NIX_NAME`, `UPDATE_NIX_PNAME`, `UPDATE_NIX_OLD_VERSION` and `UPDATE_NIX_ATTR_PATH` environment variables set respectively to the name, pname, old version and attribute path of the package it is supposed to update. ::: {.note} 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 `git commit` or any other commands that cannot handle that. |