about summary refs log tree commit diff
path: root/nix/nix-1p
diff options
context:
space:
mode:
Diffstat (limited to 'nix/nix-1p')
-rw-r--r--nix/nix-1p/README.md12
1 files changed, 7 insertions, 5 deletions
diff --git a/nix/nix-1p/README.md b/nix/nix-1p/README.md
index bdb49c7defe7..e7cf1e2d90d0 100644
--- a/nix/nix-1p/README.md
+++ b/nix/nix-1p/README.md
@@ -569,20 +569,22 @@ but have the modification above be reflected in the imported package set:
 
 ```nix
 let
-  overlay = (self: super: {
-    someProgram = super.someProgram.overrideAttrs(old: {
+  overlay = (final: prev: {
+    someProgram = prev.someProgram.overrideAttrs(old: {
       configureFlags = old.configureFlags or [] ++ ["--mimic-threaten-tag"];
     });
   });
 in import <nixpkgs> { overlays = [ overlay ]; }
 ```
 
-The overlay function receives two arguments, `self` and `super`. `self` is
+The overlay function receives two arguments, `final` and `prev`. `final` is
 the [fixed point][fp] of the overlay's evaluation, i.e. the package set
-*including* the new packages and `super` is the "original" package set.
+*including* the new packages and `prev` is the "original" package set.
 
 See the Nix manual sections [on overrides][] and [on overlays][] for more
-details.
+details (note: the convention has moved away from using `self` in favor of
+`final`, and `prev` instead of `super`, but the documentation has not been
+updated to reflect this).
 
 [currying]: https://en.wikipedia.org/wiki/Currying
 [builtins]: https://nixos.org/nix/manual/#ssec-builtins