From c3e2f987796e805ade33f53fc24dc0dab2e66dc9 Mon Sep 17 00:00:00 2001 From: Benjamin Hipple Date: Sat, 9 May 2020 18:02:20 -0400 Subject: 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`. --- doc/languages-frameworks/python.section.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/languages-frameworks/python.section.md') diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md index 734e51b38656..00d5d0ff04cf 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 {}; - 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 ``` -- cgit 1.4.1