summary refs log tree commit diff
path: root/doc/languages-frameworks/python.section.md
diff options
context:
space:
mode:
authorBenjamin Hipple <bhipple@protonmail.com>2020-05-09 18:02:20 -0400
committerBenjamin Hipple <bhipple@protonmail.com>2020-05-09 18:02:20 -0400
commitc3e2f987796e805ade33f53fc24dc0dab2e66dc9 (patch)
tree56ff783cd3efed8c0f08ca19c35ea2c5a58b3f56 /doc/languages-frameworks/python.section.md
parentd373d80b1207d52621961b16aa4a3438e4f98167 (diff)
downloadnixpkgs-c3e2f987796e805ade33f53fc24dc0dab2e66dc9.tar
nixpkgs-c3e2f987796e805ade33f53fc24dc0dab2e66dc9.tar.gz
nixpkgs-c3e2f987796e805ade33f53fc24dc0dab2e66dc9.tar.bz2
nixpkgs-c3e2f987796e805ade33f53fc24dc0dab2e66dc9.tar.lz
nixpkgs-c3e2f987796e805ade33f53fc24dc0dab2e66dc9.tar.xz
nixpkgs-c3e2f987796e805ade33f53fc24dc0dab2e66dc9.tar.zst
nixpkgs-c3e2f987796e805ade33f53fc24dc0dab2e66dc9.zip
doc: use idiomatic overlay names in the python manual example
An overlay by any other name would function just as well, but we generally use
`self: super:` for the regular overlays, and `python-self: python-super`.
Diffstat (limited to 'doc/languages-frameworks/python.section.md')
-rw-r--r--doc/languages-frameworks/python.section.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md
index 734e51b3865..00d5d0ff04c 100644
--- a/doc/languages-frameworks/python.section.md
+++ b/doc/languages-frameworks/python.section.md
@@ -1049,12 +1049,12 @@ If you want the whole of Nixpkgs to use your modifications, then you can use
 ```nix
 let
   pkgs = import <nixpkgs> {};
-  newpkgs = import pkgs.path { overlays = [ (pkgsself: pkgssuper: {
-    python27 = let
-      packageOverrides = self: super: {
-        numpy = super.numpy_1_10;
+  newpkgs = import pkgs.path { overlays = [ (self: super: {
+    python38 = let
+      packageOverrides = python-self: python-super: {
+        numpy = python-super.numpy_1_18.3;
       };
-    in pkgssuper.python27.override {inherit packageOverrides;};
+    in super.python38.override {inherit packageOverrides;};
   } ) ]; };
 in newpkgs.inkscape
 ```