Add `preInstall` and `postInstall` to the `installPhase` to permit package overrides to add commands to the install phase. Suggested by r-rmcgibbo bot in https://github.com/NixOS/nixpkgs/pull/133537#issuecomment-897437621