about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2023-06-21 17:45:18 +0300
committerArtturin <Artturin@artturin.com>2023-06-30 23:28:00 +0300
commitfb643f3260823fa715cee14c2741dbdbfc522dc0 (patch)
treeb5ecb31506a154c7c887a06a31f741ee09c7edf9 /doc
parent0fdae315315686d180d924a7c33066fbc5b4c14d (diff)
doc/using/overrides: it is possible to use previous arguments in .override
Diffstat (limited to 'doc')
-rw-r--r--doc/using/overrides.chapter.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/using/overrides.chapter.md b/doc/using/overrides.chapter.md
index b251cce4f4d42..060bf051b929b 100644
--- a/doc/using/overrides.chapter.md
+++ b/doc/using/overrides.chapter.md
@@ -16,6 +16,12 @@ Example usages:
 pkgs.foo.override { arg1 = val1; arg2 = val2; ... }
 ```
 
+It's also possible to access the previous arguments.
+
+```nix
+pkgs.foo.override (previous: { arg1 = previous.arg1; ... })
+```
+
 <!-- TODO: move below programlisting to a new section about extending and overlays and reference it -->
 
 ```nix