mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-19 15:11:30 +00:00
python2Packages.buildPythonPackage: handle passthru with mkDerivation
Port to python2/mk-python-derivation.nix commit 21a1cf9686
("mkPythonPackage, mkPythonApplication:
handle passthru with mkDerivation").
This commit is contained in:
@@ -272,6 +272,15 @@ let
|
||||
|
||||
outputs = outputs ++ lib.optional withDistOutput "dist";
|
||||
|
||||
passthru.updateScript =
|
||||
let
|
||||
filename = builtins.head (lib.splitString ":" self.meta.position);
|
||||
in
|
||||
attrs.passthru.updateScript or [
|
||||
update-python-libraries
|
||||
filename
|
||||
];
|
||||
|
||||
meta = {
|
||||
# default to python's platforms
|
||||
platforms = python.meta.platforms;
|
||||
@@ -289,16 +298,7 @@ let
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
passthru.updateScript =
|
||||
let
|
||||
filename = builtins.head (lib.splitString ":" self.meta.position);
|
||||
in
|
||||
attrs.passthru.updateScript or [
|
||||
update-python-libraries
|
||||
filename
|
||||
];
|
||||
in
|
||||
lib.extendDerivation (
|
||||
disabled -> throw "${name} not supported for interpreter ${python.executable}"
|
||||
) passthru self
|
||||
) { } self
|
||||
|
||||
Reference in New Issue
Block a user