From fb643f3260823fa715cee14c2741dbdbfc522dc0 Mon Sep 17 00:00:00 2001 From: Artturin Date: Wed, 21 Jun 2023 17:45:18 +0300 Subject: doc/using/overrides: it is possible to use previous arguments in .override --- doc/using/overrides.chapter.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/using') 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; ... }) +``` + ```nix -- cgit v1.2.3