diff options
Diffstat (limited to 'doc/using/overrides.chapter.md')
-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 |