mk-python-derivation: fix passthru.updateScript being merged into the derivation (#241922)

Before updateScript was being merged to pdm.updateScript.
With this commit it is being moved to the expected location pdm.passthru.updateScript

Sandro d5917b14 3cf8b738

Changed files
+7 -4
pkgs
development
interpreters
+7 -4
pkgs/development/interpreters/python/mk-python-derivation.nix
···
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
+
in
+
if disabled then
+
throw "${name} not supported for interpreter ${python.executable}"
+
else
+
self.overrideAttrs (attrs: {
+
passthru = lib.recursiveUpdate passthru attrs.passthru;
+
})