diff options
author | Alyssa Ross <hi@alyssa.is> | 2020-05-09 13:07:50 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2020-05-09 13:23:39 +0000 |
commit | 6deca36e61481236cf8ab9d4c1aac088499dca09 (patch) | |
tree | 1a981aeef282d503c80bce36715bad2a70595166 | |
parent | 2c814db7c0d367d8b88c551f669579a5d01339a6 (diff) | |
download | nixlib-6deca36e61481236cf8ab9d4c1aac088499dca09.tar nixlib-6deca36e61481236cf8ab9d4c1aac088499dca09.tar.gz nixlib-6deca36e61481236cf8ab9d4c1aac088499dca09.tar.bz2 nixlib-6deca36e61481236cf8ab9d4c1aac088499dca09.tar.lz nixlib-6deca36e61481236cf8ab9d4c1aac088499dca09.tar.xz nixlib-6deca36e61481236cf8ab9d4c1aac088499dca09.tar.zst nixlib-6deca36e61481236cf8ab9d4c1aac088499dca09.zip |
python3: expose packageOverrides in passthru
This allows (manually) composing packageOverrides, like so: python3.override { packageOverrides = lib.composeExtensions python3.packageOverrides (final: super: { ... }); } This is still not great, but without this, you can't use packageOverrides twice at all, because the second use just clobbers the first with no way to make sure the first override is applied as well.
-rw-r--r-- | nixpkgs/pkgs/development/interpreters/python/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixpkgs/pkgs/development/interpreters/python/default.nix b/nixpkgs/pkgs/development/interpreters/python/default.nix index 099632b1e853..56bf14183681 100644 --- a/nixpkgs/pkgs/development/interpreters/python/default.nix +++ b/nixpkgs/pkgs/development/interpreters/python/default.nix @@ -40,7 +40,7 @@ with pkgs; pkgs = pythonPackages; interpreter = "${self}/bin/${executable}"; inherit executable implementation libPrefix pythonVersion sitePackages; - inherit sourceVersion; + inherit sourceVersion packageOverrides; pythonAtLeast = lib.versionAtLeast pythonVersion; pythonOlder = lib.versionOlder pythonVersion; inherit hasDistutilsCxxPatch pythonForBuild; |