That's what I would do, too, but also verify with the employer over the summer that he is fine with open source code to be integrated into the project.
Also it might happen that while integrating it, improvements to the open source code come to mind. Then it should be clear from the start if it would be OK to feed improvements created during employed time back into the open source project.