How do you draft an agreement that involves a software development work on Open Source?

I’m drafting an agreement with a client that wanted us to develop a software on top of a Open Source software. Meaning, we will develop new modules on the existing open source software.

How would the IP Rights clause in the agreement sounds like?