3 lib.mapAttrs (lname: lset: let
6 free = true; # Most of our licenses are Free, explicitly declare unfree additions as such!
10 mkLicense = licenseDeclaration: let
11 applyDefaults = license: defaultLicense // license;
14 then license // { url = "https://spdx.org/licenses/${license.spdxId}.html"; }
16 applyRedistributable = license: { redistributable = license.free; } // license;
17 in lib.pipe licenseDeclaration [
23 /* License identifiers from spdx.org where possible.
24 * If you cannot find your license here, then look for a similar license or
25 * add it to this list. The URL mentioned above is a good source for inspiration.
30 fullName = "Abstyles License";
35 fullName = "Academic Free License v2.0";
40 fullName = "Academic Free License v2.1";
45 fullName = "Academic Free License v3.0";
49 spdxId = "AGPL-3.0-only";
50 fullName = "GNU Affero General Public License v3.0 only";
54 spdxId = "AGPL-3.0-or-later";
55 fullName = "GNU Affero General Public License v3.0 or later";
59 fullName = "Amazon Software License";
60 url = "https://aws.amazon.com/asl/";
65 fullName = "AMD License Agreement";
66 url = "https://developer.amd.com/amd-license-agreement/";
72 fullName = "Apple Public Source License 2.0";
76 fullName = "Arphic Public License";
77 url = "https://www.freedesktop.org/wiki/Arphic_Public_License/";
81 spdxId = "Artistic-1.0";
82 fullName = "Artistic License 1.0";
86 spdxId = "Artistic-2.0";
87 fullName = "Artistic License 2.0";
91 spdxId = "Apache-2.0";
92 fullName = "Apache License 2.0";
97 fullName = "Boost Software License 1.0";
102 fullName = "Beerware License";
106 spdxId = "BlueOak-1.0.0";
107 fullName = "Blue Oak Model License 1.0.0";
112 fullName = "BSD Zero Clause License";
116 spdxId = "BSD-1-Clause";
117 fullName = "BSD 1-Clause License";
121 spdxId = "BSD-2-Clause";
122 fullName = ''BSD 2-clause "Simplified" License'';
126 spdxId = "BSD-2-Clause-Patent";
127 fullName = "BSD-2-Clause Plus Patent License";
131 spdxId = "BSD-3-Clause";
132 fullName = ''BSD 3-clause "New" or "Revised" License'';
136 spdxId = "BSD-4-Clause";
137 fullName = ''BSD 4-clause "Original" or "Old" License'';
141 spdxId = "BSD-4-Clause-UC";
142 fullName = "BSD 4-Clause University of California-Specific";
146 spdxId = "BSD-Protection";
147 fullName = "BSD Protection License";
151 fullName = "Business Source License 1.1";
152 url = "https://mariadb.com/bsl11";
157 spdxId = "ClArtistic";
158 fullName = "Clarified Artistic License";
163 fullName = "Creative Commons Zero v1.0 Universal";
167 spdxId = "CC-BY-NC-SA-2.0";
168 fullName = "Creative Commons Attribution Non Commercial Share Alike 2.0";
173 spdxId = "CC-BY-NC-SA-2.5";
174 fullName = "Creative Commons Attribution Non Commercial Share Alike 2.5";
179 spdxId = "CC-BY-NC-SA-3.0";
180 fullName = "Creative Commons Attribution Non Commercial Share Alike 3.0";
185 spdxId = "CC-BY-NC-SA-4.0";
186 fullName = "Creative Commons Attribution Non Commercial Share Alike 4.0";
191 spdxId = "CC-BY-NC-3.0";
192 fullName = "Creative Commons Attribution Non Commercial 3.0 Unported";
197 spdxId = "CC-BY-NC-4.0";
198 fullName = "Creative Commons Attribution Non Commercial 4.0 International";
203 spdxId = "CC-BY-ND-3.0";
204 fullName = "Creative Commons Attribution-No Derivative Works v3.00";
209 spdxId = "CC-BY-SA-2.5";
210 fullName = "Creative Commons Attribution Share Alike 2.5";
214 spdxId = "CC-BY-3.0";
215 fullName = "Creative Commons Attribution 3.0";
219 spdxId = "CC-BY-SA-3.0";
220 fullName = "Creative Commons Attribution Share Alike 3.0";
224 spdxId = "CC-BY-4.0";
225 fullName = "Creative Commons Attribution 4.0";
229 spdxId = "CC-BY-SA-4.0";
230 fullName = "Creative Commons Attribution Share Alike 4.0";
235 fullName = "Common Development and Distribution License 1.0";
239 spdxId = "CECILL-2.0";
240 fullName = "CeCILL Free Software License Agreement v2.0";
245 fullName = "CeCILL-B Free Software License Agreement";
250 fullName = "CeCILL-C Free Software License Agreement";
255 fullName = "Common Public Attribution License 1.0";
260 fullName = "Common Public License 1.0";
265 fullName = "curl License";
270 fullName = "DOC License";
274 fullName = "EPSON AVASYS PUBLIC LICENSE";
275 url = "https://avasys.jp/hp/menu000000700/hpg000000603.htm";
281 fullName = "Eiffel Forum License v1.0";
286 fullName = "Eiffel Forum License v2.0";
290 fullName = "ELASTIC LICENSE";
291 url = "https://github.com/elastic/elasticsearch/blob/master/licenses/ELASTIC-LICENSE.txt";
297 fullName = "Eclipse Public License 1.0";
302 fullName = "Eclipse Public License 2.0";
306 fullName = "Seiko Epson Corporation Software License Agreement for Linux";
307 url = "https://download.ebz.epson.net/dsc/du/02/eula/global/LINUX_EN.html";
313 fullName = "European Union Public License 1.1";
318 fullName = "European Union Public License 1.2";
322 spdxId = "GFDL-1.1-only";
323 fullName = "GNU Free Documentation License v1.1 only";
327 spdxId = "GFDL-1.1-or-later";
328 fullName = "GNU Free Documentation License v1.1 or later";
332 spdxId = "GFDL-1.2-only";
333 fullName = "GNU Free Documentation License v1.2 only";
337 spdxId = "GFDL-1.2-or-later";
338 fullName = "GNU Free Documentation License v1.2 or later";
342 spdxId = "GFDL-1.3-only";
343 fullName = "GNU Free Documentation License v1.3 only";
347 spdxId = "GFDL-1.3-or-later";
348 fullName = "GNU Free Documentation License v1.3 or later";
352 fullName = "Floodgap Free Software License";
353 url = "https://www.floodgap.com/software/ffsl/license.html";
358 fullName = "Unspecified free software license";
363 fullName = "Freetype Project License";
367 fullName = "Geant4 Software License";
368 url = "https://geant4.web.cern.ch/geant4/license/LICENSE.html";
372 fullName = "GeoGebra Non-Commercial License Agreement";
373 url = "https://www.geogebra.org/license";
378 spdxId = "GPL-1.0-only";
379 fullName = "GNU General Public License v1.0 only";
383 spdxId = "GPL-1.0-or-later";
384 fullName = "GNU General Public License v1.0 or later";
388 spdxId = "GPL-2.0-only";
389 fullName = "GNU General Public License v2.0 only";
393 spdxId = "GPL-2.0-with-classpath-exception";
394 fullName = "GNU General Public License v2.0 only (with Classpath exception)";
397 gpl2ClasspathPlus = {
398 fullName = "GNU General Public License v2.0 or later (with Classpath exception)";
399 url = "https://fedoraproject.org/wiki/Licensing/GPL_Classpath_Exception";
403 fullName = "GNU General Public License version 2 only (with OSI approved licenses linking exception)";
404 url = "https://www.mysql.com/about/legal/licensing/foss-exception";
408 spdxId = "GPL-2.0-or-later";
409 fullName = "GNU General Public License v2.0 or later";
413 spdxId = "GPL-3.0-only";
414 fullName = "GNU General Public License v3.0 only";
418 spdxId = "GPL-3.0-or-later";
419 fullName = "GNU General Public License v3.0 or later";
422 gpl3ClasspathPlus = {
423 fullName = "GNU General Public License v3.0 or later (with Classpath exception)";
424 url = "https://fedoraproject.org/wiki/Licensing/GPL_Classpath_Exception";
429 fullName = "Historic Permission Notice and Disclaimer";
433 fullName = "Historical Permission Notice and Disclaimer - sell variant";
434 spdxId = "HPND-sell-variant";
437 # Intel's license, seems free
440 url = "https://old.calculate-linux.org/packages/licenses/iASL";
445 fullName = "Independent JPEG Group License";
449 fullName = "ImageMagick License";
450 spdxId = "imagemagick";
454 fullName = "INRIA Non-Commercial License Agreement for the CompCert verified compiler";
455 url = "https://compcert.org/doc/LICENSE.txt";
460 fullName = "INRIA Non-Commercial License Agreement for IceSL";
461 url = "https://icesl.loria.fr/assets/pdf/EULA_IceSL_binary.pdf";
467 fullName = "IPA Font License";
472 fullName = "IBM Public License v1.0";
477 fullName = "ISC License";
480 # Proprietary binaries; free to redistribute without modification.
482 fullName = "Databricks Proprietary License";
483 url = "https://pypi.org/project/databricks-connect";
488 fullName = "Intel Simplified Software License";
489 url = "https://software.intel.com/en-us/license/intel-simplified-software-license";
494 spdxId = "LGPL-2.0-only";
495 fullName = "GNU Library General Public License v2 only";
499 spdxId = "LGPL-2.0-or-later";
500 fullName = "GNU Library General Public License v2 or later";
504 spdxId = "LGPL-2.1-only";
505 fullName = "GNU Lesser General Public License v2.1 only";
509 spdxId = "LGPL-2.1-or-later";
510 fullName = "GNU Lesser General Public License v2.1 or later";
514 spdxId = "LGPL-3.0-only";
515 fullName = "GNU Lesser General Public License v3.0 only";
519 spdxId = "LGPL-3.0-or-later";
520 fullName = "GNU Lesser General Public License v3.0 or later";
525 fullName = "Lesser General Public License For Linguistic Resources";
530 fullName = "libpng License";
534 spdxId = "libpng-2.0"; # Used since libpng 1.6.36.
535 fullName = "PNG Reference Library version 2";
540 fullName = "libtiff License";
544 fullName = "Lisp LGPL; GNU Lesser General Public License version 2.1 with Franz Inc. preamble for clarification of LGPL terms in context of Lisp";
545 url = "https://opensource.franz.com/preamble.html";
549 spdxId = "LLVM-exception";
550 fullName = "LLVM Exception"; # LLVM exceptions to the Apache 2.0 License
555 fullName = "LaTeX Project Public License v1.2";
559 spdxId = "LPPL-1.3c";
560 fullName = "LaTeX Project Public License v1.3c";
565 fullName = "Lucent Public License v1.02";
569 fullName = "MirOS License";
570 url = "https://opensource.org/licenses/MirOS";
573 # spdx.org does not (yet) differentiate between the X11 and Expat versions
574 # for details see https://en.wikipedia.org/wiki/MIT_License#Various_versions
577 fullName = "MIT License";
582 fullName = "Mozilla Public License 1.0";
587 fullName = "Mozilla Public License 1.1";
592 fullName = "Mozilla Public License 2.0";
597 fullName = "Microsoft Public License";
602 fullName = "NASA Open Source Agreement 1.3";
608 fullName = "University of Illinois/NCSA Open Source License";
612 spdxId = "NPOSL-3.0";
613 fullName = "Non-Profit Open Software License 3.0";
617 fullName = "Obsidian End User Agreement";
618 url = "https://obsidian.md/eula";
623 fullName = "OCamlPro Non Commercial license version 1";
624 url = "https://alt-ergo.ocamlpro.com/http/alt-ergo-2.2.0/OCamlPro-Non-Commercial-License.pdf";
630 fullName = "Open Data Commons Open Database License v1.0";
635 fullName = "SIL Open Font License 1.1";
639 spdxId = "OLDAP-2.8";
640 fullName = "Open LDAP Public License v2.8";
645 fullName = "OpenSSL License";
650 fullName = "Open Software License 2.0";
655 fullName = "Open Software License 2.1";
660 fullName = "Open Software License 3.0";
664 spdxId = "Parity-7.0.0";
665 fullName = "Parity Public License 7.0.0";
666 url = "https://paritylicense.com/versions/7.0.0.html";
671 fullName = "PHP License v3.01";
675 spdxId = "PostgreSQL";
676 fullName = "PostgreSQL License";
680 fullName = "Postman EULA";
681 url = "https://www.getpostman.com/licenses/postman_base_app";
686 spdxId = "Python-2.0";
687 fullName = "Python Software Foundation License version 2";
688 url = "https://docs.python.org/license.html";
692 fullName = "Public Domain";
696 fullName = " Purdue BSD-Style License"; # also know as lsof license
697 url = "https://enterprise.dejacode.com/licenses/public/purdue-bsd";
701 fullName = "Prosperity-3.0.0";
703 url = "https://prosperitylicense.com/versions/3.0.0.html";
708 fullName = "Qhull License";
713 fullName = "Q Public License 1.0";
717 fullName = "Qwt License, Version 1.0";
718 url = "https://qwt.sourceforge.io/qwtlicense.html";
723 fullName = "Ruby License";
728 fullName = "Sendmail License";
732 spdxId = "SGI-B-2.0";
733 fullName = "SGI Free Software License B v2.0";
737 spdxId = "Sleepycat";
738 fullName = "Sleepycat License";
743 fullName = "SMAIL General Public License";
744 url = "https://sources.debian.org/copyright/license/debianutils/4.9.1/";
749 fullName = "Server Side Public License";
750 url = "https://www.mongodb.com/licensing/server-side-public-license";
753 # The license a slightly modified AGPL but still considered unfree by the
754 # OSI for what seem like political reasons
755 redistributable = true; # Definitely redistributable though, it's an AGPL derivative
760 fullName = "Synthesis Tool Kit 4.3";
761 url = "https://github.com/thestk/stk/blob/master/LICENSE";
766 fullName = "TCL/TK License";
770 fullName = "Ubuntu Font License 1.0";
771 url = "https://ubuntu.com/legal/font-licence";
779 unfreeRedistributable = {
780 fullName = "Unfree redistributable";
782 redistributable = true;
785 unfreeRedistributableFirmware = {
786 fullName = "Unfree redistributable firmware";
787 redistributable = true;
788 # Note: we currently consider these "free" for inclusion in the
789 # channel and NixOS images.
793 spdxId = "Unicode-DFS-2015";
794 fullName = "Unicode License Agreement - Data Files and Software (2015)";
798 spdxId = "Unicode-DFS-2016";
799 fullName = "Unicode License Agreement - Data Files and Software (2016)";
803 spdxId = "Unlicense";
804 fullName = "The Unlicense";
808 fullName = "Universal Permissive License";
809 url = "https://oss.oracle.com/licenses/upl/";
814 fullName = "Vim License";
818 fullName = "Oracle VM VirtualBox Extension Pack Personal Use and Evaluation License (PUEL)";
819 url = "https://www.virtualbox.org/wiki/VirtualBox_PUEL";
825 fullName = "Vovida Software License v1.0";
829 spdxId = "Watcom-1.0";
830 fullName = "Sybase Open Watcom Public License 1.0";
835 fullName = "W3C Software Notice and License";
839 fullName = "Wadalab Font License";
840 url = "https://fedoraproject.org/wiki/Licensing:Wadalab?rd=Licensing/Wadalab";
845 fullName = "Do What The F*ck You Want To Public License";
849 spdxId = "wxWindows";
850 fullName = "wxWindows Library Licence, Version 3.1";
855 url = "http://mcj.sourceforge.net/authors.html#xfig"; # https is broken
860 fullName = "zlib License";
865 fullName = "Zope Public License 2.0";
870 fullName = "Zope Public License 2.1";
873 # TODO: remove legacy aliases
876 fullName = "GNU Affero General Public License v3.0";
881 fullName = "GNU Free Documentation License v1.1";
886 fullName = "GNU Free Documentation License v1.2";
891 fullName = "GNU Free Documentation License v1.3";
896 fullName = "GNU General Public License v1.0";
901 fullName = "GNU General Public License v2.0";
906 fullName = "GNU General Public License v3.0";
911 fullName = "GNU Library General Public License v2";
916 fullName = "GNU Lesser General Public License v2.1";
921 fullName = "GNU Lesser General Public License v3.0";