You described something similar to LGPL .
I DO NOT LOVE
Under LGPL you can associate yourself with the library, and the rest of your application should not be distributed with the LGPL license - it can be any license you want, but the source code of the library should remain available under LGPL, However, if you change the library and distribute it The new modified library should also be LGPLed.
Technically, someone could sell a derivative work, but once this work was distributed to even one person, that person could freely distribute it to everyone they want.
source share