mirror of
https://github.com/NixOS/rfcs.git
synced 2025-12-20 07:51:18 +01:00
Improve examples
This commit is contained in:
parent
778bc99383
commit
44a3b87c00
1 changed files with 5 additions and 2 deletions
|
|
@ -269,7 +269,7 @@ derivation. Meaning, say `all-packages.nix` has:
|
|||
my-awesome-pkg = wrapGeneric (callPackage ../applications/my-awesome-pkg { }) { };
|
||||
```
|
||||
|
||||
Assuming the user knows my-awesome-pkg is wrapped with wrapGeneric, they would
|
||||
Assuming the user knows `my-awesome-pkg` is wrapped with `wrapGeneric`, they would
|
||||
need to use an overlay like this, to override the unwrapped derivation:
|
||||
|
||||
```nix
|
||||
|
|
@ -286,7 +286,10 @@ self: super:
|
|||
}
|
||||
```
|
||||
|
||||
And to override the wrapper derivation, it should be possible using:
|
||||
And to override the wrapper derivation, e.g to add new optional features not
|
||||
strictly necessary (as in [pull
|
||||
83482](https://github.com/NixOS/nixpkgs/pull/83482)), it should be possible
|
||||
using:
|
||||
|
||||
```nix
|
||||
self: super:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue