diff options
author | Artturin <Artturin@artturin.com> | 2023-06-21 17:45:18 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-06-30 23:28:00 +0300 |
commit | fb643f3260823fa715cee14c2741dbdbfc522dc0 (patch) | |
tree | b5ecb31506a154c7c887a06a31f741ee09c7edf9 /doc/using | |
parent | 0fdae315315686d180d924a7c33066fbc5b4c14d (diff) |
doc/using/overrides: it is possible to use previous arguments in .override
Diffstat (limited to 'doc/using')
-rw-r--r-- | doc/using/overrides.chapter.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/using/overrides.chapter.md b/doc/using/overrides.chapter.md index b251cce4f4d4..060bf051b929 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 |