python2Packages: separate extension
This commit is contained in:
parent
3955326221
commit
4f02e12f8a
|
@ -69,12 +69,15 @@ with pkgs;
|
||||||
recursivePthLoader
|
recursivePthLoader
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
optionalExtensions = cond: as: if cond then as else [];
|
||||||
|
python2Extension = import ../../../top-level/python2-packages.nix;
|
||||||
|
extensions = lib.composeManyExtensions ((optionalExtensions (!self.isPy3k) [python2Extension]) ++ [ overrides ]);
|
||||||
in lib.makeScopeWithSplicing
|
in lib.makeScopeWithSplicing
|
||||||
pkgs.splicePackages
|
pkgs.splicePackages
|
||||||
pkgs.newScope
|
pkgs.newScope
|
||||||
otherSplices
|
otherSplices
|
||||||
keep
|
keep
|
||||||
(lib.extends overrides pythonPackagesFun))
|
(lib.extends extensions pythonPackagesFun))
|
||||||
{
|
{
|
||||||
overrides = packageOverrides;
|
overrides = packageOverrides;
|
||||||
};
|
};
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
# Extension with Python 2 packages that is overlayed on top
|
||||||
|
# of the Python 3 packages set. This way, Python 2+3 compatible
|
||||||
|
# packages can still be used.
|
||||||
|
|
||||||
|
self: super: {
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue