How about the option to buy the source? I'd do that for some of my code - sell it for a fee. You can then use it however you like, but there would be restrictions - you can't give it to anyone else or sell it to anyone else. You can use it to augment your own code, or create something new based on it.
I think that one's a win all round!