Most public projects on SourceHut (or anywhere else) need to have a software license before others can use the project, contribute to the code, and so on. Choosing the right license for your needs is important. If you're unsure of which to use, we can offer some suggestions.
Note: we are not your lawyer and this is not legal advice.
The Free Software Foundation publishes the GNU General Public License for this purpose. In short, it requires anyone who publishes modified versions of your code or software that uses it to publish their changes or the software they incorporated it into under the same license terms. Version 3 also requires hardware manufacturers to allow users to install their modifications onto devices which use GPLv3 licensed software.
If your software is a library, you may prefer to use LGPL. It provides similar obligations for those who modify and re-distribute your library, but it doesn't impose on the programs which depend on your code.
Authors publishing software which is useful over a network — databases, web applications, and so on — should consider the "Affero" General Public License, or AGPL, as well. The AGPL is similar to the GPL, but its terms also apply when your software is used to provide a service over a network. Sourcehut itself is distributed with the AGPLv3 license.
The MIT and BSD licenses allow anyone to use or modify your software for any purpose, including to make changes or incorporate it into their own software without releasing their source code. Both licenses are very short and easy to understand.
If you're publishing software as a business, Apache 2.0 is likely to be the most appropriate license for your open-source project. It explicitly protects your trademarks and includes a patent license for any patents which are applicable to your project.
commit b345d3de11bc0e7dbf344de75c30cf7e3620fa7b Author: Conrad Hoffmann <firstname.lastname@example.org> Date: 2022-05-12T10:04:02+02:00 Add link to package installation instructions Besides being a bit more convenient, it also adds a little emphasis to this specific bullet point :)