Commit f2efb32a authored by Yueh-Shun Li's avatar Yueh-Shun Li
Browse files

python2Packages.buildPythonPackage: port respect user-specified passthru attrs

Port to python2/mk-python-derivation.nix commit d6a757bb
("buildPython*: prioritize user-specified passthru attrs").
parent 57c0190c
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -272,14 +272,17 @@ let

        outputs = outputs ++ lib.optional withDistOutput "dist";

        passthru.updateScript =
        passthru = {
          updateScript =
            let
              filename = builtins.head (lib.splitString ":" self.meta.position);
            in
          attrs.passthru.updateScript or [
            [
              update-python-libraries
              filename
            ];
        }
        // passthru;

        meta = {
          # default to python's platforms