···1616pkgs.foo.override { arg1 = val1; arg2 = val2; ... }
1717```
18181919+It's also possible to access the previous arguments.
2020+2121+```nix
2222+pkgs.foo.override (previous: { arg1 = previous.arg1; ... })
2323+```
2424+1925<!-- TODO: move below programlisting to a new section about extending and overlays and reference it -->
20262127```nix