3
0
Fork 0
forked from mirrors/nixpkgs

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

This commit is contained in:
Artturin 2023-06-21 17:45:18 +03:00
parent 0fdae31531
commit fb643f3260

View file

@ -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