Commit fb643f32 authored by Artturin's avatar Artturin
Browse files

doc/using/overrides: it is possible to use previous arguments in .override

parent 0fdae315
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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