Something changed in the generic fixupPhase magic exposing a bug in the previous fix (wrapPythonPrograms where I should have used wrapPythonProgramsIn). Also move buildInputs and friends to a more conventional spot.