about summary refs log tree commit diff
path: root/nixpkgs
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-05-09 13:05:43 +0000
committerAlyssa Ross <hi@alyssa.is>2020-05-09 13:05:43 +0000
commit2c814db7c0d367d8b88c551f669579a5d01339a6 (patch)
tree4a3d1854a22cbf6253a8baecb09857a509018dcb /nixpkgs
parentc9239554567bce909f834758465696268085fe0b (diff)
downloadnixlib-2c814db7c0d367d8b88c551f669579a5d01339a6.tar
nixlib-2c814db7c0d367d8b88c551f669579a5d01339a6.tar.gz
nixlib-2c814db7c0d367d8b88c551f669579a5d01339a6.tar.bz2
nixlib-2c814db7c0d367d8b88c551f669579a5d01339a6.tar.lz
nixlib-2c814db7c0d367d8b88c551f669579a5d01339a6.tar.xz
nixlib-2c814db7c0d367d8b88c551f669579a5d01339a6.tar.zst
nixlib-2c814db7c0d367d8b88c551f669579a5d01339a6.zip
python3.pkgs: apply packageOverrides recursively
This makes it so that if I apply a patch to Django using
packageOverrides, it's applied to python3.pkgs.python.pkgs.django
(and python3.pkgs.python.pkgs.python.pkgs.django) as well as
python3.pkgs.django.
Diffstat (limited to 'nixpkgs')
-rw-r--r--nixpkgs/pkgs/top-level/python-packages.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/top-level/python-packages.nix b/nixpkgs/pkgs/top-level/python-packages.nix
index cb5cbb5375a7..73f943abd942 100644
--- a/nixpkgs/pkgs/top-level/python-packages.nix
+++ b/nixpkgs/pkgs/top-level/python-packages.nix
@@ -17,7 +17,11 @@ with pkgs.lib;
 let
   packages = ( self:
 
+let unoverriddenPython = python; in
+
 let
+  python = unoverriddenPython.override { packageOverrides = overrides; };
+
   inherit (python.passthru) isPy27 isPy33 isPy34 isPy35 isPy36 isPy37 isPy38 isPy39 isPy3k isPyPy pythonAtLeast pythonOlder;
 
   callPackage = pkgs.newScope self;