Skip to content

Commit

Permalink
Improve examples
Browse files Browse the repository at this point in the history
  • Loading branch information
doronbehar committed Aug 16, 2020
1 parent 778bc99 commit 44a3b87
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rfcs/0075-declarative-wrappers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 44a3b87

Please sign in to comment.