From 44a3b87c00f1cd6f97fbb07e844b19ccf08d6f8c Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sun, 16 Aug 2020 15:49:52 +0300 Subject: [PATCH] Improve examples --- rfcs/0075-declarative-wrappers.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rfcs/0075-declarative-wrappers.md b/rfcs/0075-declarative-wrappers.md index 1b7b5ea..f7baa4c 100644 --- a/rfcs/0075-declarative-wrappers.md +++ b/rfcs/0075-declarative-wrappers.md @@ -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: