My own personal solutions for this dilemma are:
1. Try and make as much money as you can and save so that you might be able to retire early, or at least retire from development and take on a less-well paying but more fulfilling job.
2. Work less (i.e. part time 3-4 days a week) and spend the remaining time volunteering or doing something you find more fulfilling.
3. Work freelance so you at least have a lot of variety in the projects you work on.