buildPython*: don't override custom updateScript

This commit is contained in:
Frederik Rietdijk 2018-12-23 09:59:56 +01:00
parent b46276658f
commit 3d5025ba79

View File

@ -110,9 +110,7 @@ let self = toPythonModule (python.stdenv.mkDerivation (builtins.removeAttrs attr
} // meta;
}));
passthru = {
updateScript = let
passthru.updateScript = let
filename = builtins.head (lib.splitString ":" self.meta.position);
in [ update-python-libraries filename ];
};
in attrs.passthru.updateScript or [ update-python-libraries filename ];
in lib.extendDerivation true passthru self