summary refs log tree commit diff
path: root/doc/languages-frameworks
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2018-06-30 16:35:49 +0100
committerGitHub <noreply@github.com>2018-06-30 16:35:49 +0100
commit11551f06e2b3f09df57365b175494679c14bc2e3 (patch)
tree383eb72bf7a9e48c2f782743c0a90c3905018bfd /doc/languages-frameworks
parente5b02664aa1fcf0b6efacd75d8d812a82feee0ed (diff)
downloadnixlib-11551f06e2b3f09df57365b175494679c14bc2e3.tar
nixlib-11551f06e2b3f09df57365b175494679c14bc2e3.tar.gz
nixlib-11551f06e2b3f09df57365b175494679c14bc2e3.tar.bz2
nixlib-11551f06e2b3f09df57365b175494679c14bc2e3.tar.lz
nixlib-11551f06e2b3f09df57365b175494679c14bc2e3.tar.xz
nixlib-11551f06e2b3f09df57365b175494679c14bc2e3.tar.zst
nixlib-11551f06e2b3f09df57365b175494679c14bc2e3.zip
Update Python documentation overlay
Using a recursive attribute set is not recommended.
Diffstat (limited to 'doc/languages-frameworks')
-rw-r--r--doc/languages-frameworks/python.section.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md
index c4a5bb0612c9..8cdee6a3f00b 100644
--- a/doc/languages-frameworks/python.section.md
+++ b/doc/languages-frameworks/python.section.md
@@ -1029,7 +1029,7 @@ To alter a python package using overlays, you would use the following approach:
 
 ```nix
 self: super:
-rec {
+{
   python = super.python.override {
     packageOverrides = python-self: python-super: {
       bepasty-server = python-super.bepasty-server.overrideAttrs ( oldAttrs: {
@@ -1041,7 +1041,7 @@ rec {
       });
     };
   };
-  pythonPackages = python.pkgs;
+  pythonPackages = self.python.pkgs;
 }
 ```