fix indentation in mk-python-derivation.nix

This commit is contained in:
DavHau 2020-06-27 14:26:03 +00:00
parent d651626eb9
commit d1c1a0c656

View File

@ -173,13 +173,13 @@ let
platforms = python.meta.platforms; platforms = python.meta.platforms;
isBuildPythonPackage = python.meta.platforms; isBuildPythonPackage = python.meta.platforms;
} // meta; } // meta;
} // lib.optionalAttrs (attrs?checkPhase) { } // lib.optionalAttrs (attrs?checkPhase) {
# If given use the specified checkPhase, otherwise use the setup hook. # If given use the specified checkPhase, otherwise use the setup hook.
# Longer-term we should get rid of `checkPhase` and use `installCheckPhase`. # Longer-term we should get rid of `checkPhase` and use `installCheckPhase`.
installCheckPhase = attrs.checkPhase; installCheckPhase = attrs.checkPhase;
})); }));
passthru.updateScript = let passthru.updateScript = let
filename = builtins.head (lib.splitString ":" self.meta.position); filename = builtins.head (lib.splitString ":" self.meta.position);
in attrs.passthru.updateScript or [ update-python-libraries filename ]; in attrs.passthru.updateScript or [ update-python-libraries filename ];
in lib.extendDerivation true passthru self in lib.extendDerivation true passthru self