mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-16 13:18:14 +00:00
doc/using/overrides: it is possible to use previous arguments in .override
This commit is contained in:
parent
0fdae31531
commit
fb643f3260
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user