···16pkgs.foo.override { arg1 = val1; arg2 = val2; ... }
17```
1800000019<!-- TODO: move below programlisting to a new section about extending and overlays and reference it -->
2021```nix
···16pkgs.foo.override { arg1 = val1; arg2 = val2; ... }
17```
1819+It's also possible to access the previous arguments.
20+21+```nix
22+pkgs.foo.override (previous: { arg1 = previous.arg1; ... })
23+```
24+25<!-- TODO: move below programlisting to a new section about extending and overlays and reference it -->
2627```nix