I'm developing a library for reading/writing a file format of a program created by a certain company. The guys from that company were so kind that they provided me with a documentation for their format, which I'm really grateful for.I'm intending to release the library as open-source under a license derived from MIT, the difference being that the library must not be used to create a program that would compete with the original program, as an expression of my gratefulness to the company.What I'm asking: is adding this rule to the license legally possible?
Deny use of my library to compete a certain company
legal;libraries
Instead of trying to add such a restriction, you could alternatively make your library GPL, or dual-licensed - GPL & commercial, with an individual pricing for each one who want to use the commercial version. That way it will still be possible for someone else to write a competing open-source software using your lib, but it will typically discourage bigger commercial vendors. When someone is really going to buy your lib, you can still decide in each case whom you will sell the lib for a moderate price, or whom you will make an offer so expensive he won't buy it.