mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-12 05:16:25 +03:00
doc/using/overrides: it is possible to use previous arguments in .override
This commit is contained in:
parent
0fdae31531
commit
fb643f3260
1 changed files with 6 additions and 0 deletions
|
@ -16,6 +16,12 @@ Example usages:
|
||||||
pkgs.foo.override { arg1 = val1; arg2 = val2; ... }
|
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 -->
|
<!-- TODO: move below programlisting to a new section about extending and overlays and reference it -->
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue