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";
34 fullName = "Anti-Capitalist Software License v1.4";
35 url = "https://anticapitalist.software/";
36 /* restrictions on corporations apply for both use and redistribution */
38 redistributable = false;
43 fullName = "Academic Free License v2.0";
48 fullName = "Academic Free License v2.1";
53 fullName = "Academic Free License v3.0";
57 spdxId = "AGPL-3.0-only";
58 fullName = "GNU Affero General Public License v3.0 only";
62 spdxId = "AGPL-3.0-or-later";
63 fullName = "GNU Affero General Public License v3.0 or later";
68 fullName = "Aladdin Free Public License";
73 fullName = "Amazon Software License";
74 url = "https://aws.amazon.com/asl/";
79 fullName = "AMD License Agreement";
80 url = "https://developer.amd.com/amd-license-agreement/";
85 fullName = "Alliance for Open Media Patent License 1.0";
86 url = "https://aomedia.org/license/patent-license/";
91 fullName = "Apple Public Source License 1.0";
96 fullName = "Apple Public Source License 2.0";
100 fullName = "Arphic Public License";
101 url = "https://www.freedesktop.org/wiki/Arphic_Public_License/";
105 spdxId = "Artistic-1.0";
106 fullName = "Artistic License 1.0";
110 spdxId = "Artistic-1.0-cl8";
111 fullName = "Artistic License 1.0 w/clause 8";
115 spdxId = "Artistic-2.0";
116 fullName = "Artistic License 2.0";
120 spdxId = "Apache-2.0";
121 fullName = "Apache License 2.0";
125 spdxId = "Apache-2.0 WITH LLVM-exception";
126 fullName = "Apache License 2.0 with LLVM Exceptions";
130 spdxId = "Bitstream-Vera";
131 fullName = "Bitstream Vera Font License";
135 spdxId = "BitTorrent-1.0";
136 fullName = " BitTorrent Open Source License v1.0";
140 spdxId = "BitTorrent-1.1";
141 fullName = " BitTorrent Open Source License v1.1";
145 url = "https://blitiri.com.ar/p/bola/";
146 fullName = "Buena Onda License Agreement 1.1";
151 fullName = "Boost Software License 1.0";
156 fullName = "Beerware License";
160 spdxId = "BlueOak-1.0.0";
161 fullName = "Blue Oak Model License 1.0.0";
166 fullName = "BSD Zero Clause License";
170 spdxId = "BSD-1-Clause";
171 fullName = "BSD 1-Clause License";
175 spdxId = "BSD-2-Clause";
176 fullName = ''BSD 2-clause "Simplified" License'';
180 spdxId = "BSD-2-Clause-Patent";
181 fullName = "BSD-2-Clause Plus Patent License";
185 spdxId = "BSD-2-Clause-Views";
186 fullName = "BSD 2-Clause with views sentence";
190 spdxId = "BSD-3-Clause";
191 fullName = ''BSD 3-clause "New" or "Revised" License'';
195 spdxId = "BSD-3-Clause-Clear";
196 fullName = "BSD 3-Clause Clear License";
200 spdxId = "BSD-4-Clause";
201 fullName = ''BSD 4-clause "Original" or "Old" License'';
204 bsdOriginalShortened = {
205 spdxId = "BSD-4-Clause-Shortened";
206 fullName = "BSD 4 Clause Shortened";
210 spdxId = "BSD-4-Clause-UC";
211 fullName = "BSD 4-Clause University of California-Specific";
215 spdxId = "BSD-Protection";
216 fullName = "BSD Protection License";
220 fullName = "Business Source License 1.1";
221 url = "https://mariadb.com/bsl11";
223 redistributable = true;
227 fullName = "Computer Associates Open Source Licence Version 1.0";
228 url = "http://jxplorer.org/licence.html";
232 fullName = "Cryptographic Autonomy License version 1.0 (CAL-1.0)";
233 url = "https://opensource.org/licenses/CAL-1.0";
238 fullName = "Caldera License";
239 url = "http://www.lemis.com/grog/UNIX/ancient-source-all.pdf";
243 fullName = "Common Attack Pattern Enumeration and Classification";
244 url = "https://capec.mitre.org/about/termsofuse.html";
248 spdxId = "ClArtistic";
249 fullName = "Clarified Artistic License";
254 fullName = "Creative Commons Zero v1.0 Universal";
258 spdxId = "CC-BY-NC-ND-3.0";
259 fullName = "Creative Commons Attribution Non Commercial No Derivative Works 3.0 Unported";
264 spdxId = "CC-BY-NC-ND-4.0";
265 fullName = "Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International";
270 spdxId = "CC-BY-NC-SA-2.0";
271 fullName = "Creative Commons Attribution Non Commercial Share Alike 2.0";
276 spdxId = "CC-BY-NC-SA-2.5";
277 fullName = "Creative Commons Attribution Non Commercial Share Alike 2.5";
282 spdxId = "CC-BY-NC-SA-3.0";
283 fullName = "Creative Commons Attribution Non Commercial Share Alike 3.0";
288 spdxId = "CC-BY-NC-SA-4.0";
289 fullName = "Creative Commons Attribution Non Commercial Share Alike 4.0";
294 spdxId = "CC-BY-NC-3.0";
295 fullName = "Creative Commons Attribution Non Commercial 3.0 Unported";
300 spdxId = "CC-BY-NC-4.0";
301 fullName = "Creative Commons Attribution Non Commercial 4.0 International";
306 spdxId = "CC-BY-ND-3.0";
307 fullName = "Creative Commons Attribution-No Derivative Works v3.00";
312 spdxId = "CC-BY-SA-1.0";
313 fullName = "Creative Commons Attribution Share Alike 1.0";
317 spdxId = "CC-BY-SA-2.0";
318 fullName = "Creative Commons Attribution Share Alike 2.0";
322 spdxId = "CC-BY-SA-2.5";
323 fullName = "Creative Commons Attribution Share Alike 2.5";
327 spdxId = "CC-BY-1.0";
328 fullName = "Creative Commons Attribution 1.0";
332 spdxId = "CC-BY-3.0";
333 fullName = "Creative Commons Attribution 3.0";
337 spdxId = "CC-BY-SA-3.0";
338 fullName = "Creative Commons Attribution Share Alike 3.0";
342 spdxId = "CC-BY-4.0";
343 fullName = "Creative Commons Attribution 4.0";
347 spdxId = "CC-BY-SA-4.0";
348 fullName = "Creative Commons Attribution Share Alike 4.0";
353 fullName = "Common Development and Distribution License 1.0";
357 spdxId = "CECILL-2.0";
358 fullName = "CeCILL Free Software License Agreement v2.0";
362 spdxId = "CECILL-2.1";
363 fullName = "CeCILL Free Software License Agreement v2.1";
368 fullName = "CeCILL-B Free Software License Agreement";
373 fullName = "CeCILL-C Free Software License Agreement";
378 fullName = "Common Public Attribution License 1.0";
383 fullName = "Common Public License 1.0";
388 fullName = "curl License";
393 fullName = "DOC License";
398 fullName = "Detection Rule License 1.0";
402 fullName = "EPSON AVASYS PUBLIC LICENSE";
403 url = "https://avasys.jp/hp/menu000000700/hpg000000603.htm";
408 fullName = "Educational Community License, Version 2.0";
409 url = "https://opensource.org/licenses/ECL-2.0";
410 shortName = "ECL 2.0";
416 fullName = "Eiffel Forum License v1.0";
421 fullName = "Eiffel Forum License v2.0";
425 fullName = "Elastic License 2.0";
426 url = "https://github.com/elastic/elasticsearch/blob/main/licenses/ELASTIC-LICENSE-2.0.txt";
432 fullName = "Eclipse Public License 1.0";
437 fullName = "Eclipse Public License 2.0";
441 fullName = "Seiko Epson Corporation Software License Agreement for Linux";
442 url = "https://download.ebz.epson.net/dsc/du/02/eula/global/LINUX_EN.html";
448 fullName = "European Union Public License 1.1";
453 fullName = "European Union Public License 1.2";
457 spdxId = "GFDL-1.1-only";
458 fullName = "GNU Free Documentation License v1.1 only";
462 spdxId = "GFDL-1.1-or-later";
463 fullName = "GNU Free Documentation License v1.1 or later";
467 spdxId = "GFDL-1.2-only";
468 fullName = "GNU Free Documentation License v1.2 only";
472 spdxId = "GFDL-1.2-or-later";
473 fullName = "GNU Free Documentation License v1.2 or later";
477 spdxId = "GFDL-1.3-only";
478 fullName = "GNU Free Documentation License v1.3 only";
482 spdxId = "GFDL-1.3-or-later";
483 fullName = "GNU Free Documentation License v1.3 or later";
487 fullName = "Floodgap Free Software License";
488 url = "https://www.floodgap.com/software/ffsl/license.html";
493 fullName = "Fraunhofer FDK AAC Codec Library";
498 fullName = "Unspecified free software license";
503 fullName = "Freetype Project License";
507 fullName = "Geant4 Software License";
508 url = "https://geant4.web.cern.ch/geant4/license/LICENSE.html";
512 fullName = "GeoGebra Non-Commercial License Agreement";
513 url = "https://www.geogebra.org/license";
518 fullName = "GeneralUser GS License v2.0";
519 url = "http://www.schristiancollins.com/generaluser.php"; # license included in sources
523 fullName = "GUST Font License";
524 url = "http://www.gust.org.pl/fonts/licenses/GUST-FONT-LICENSE.txt";
528 fullName = "GUST Font Source License";
529 url = "http://www.gust.org.pl/fonts/licenses/GUST-FONT-SOURCE-LICENSE.txt";
533 spdxId = "GPL-1.0-only";
534 fullName = "GNU General Public License v1.0 only";
538 spdxId = "GPL-1.0-or-later";
539 fullName = "GNU General Public License v1.0 or later";
543 spdxId = "GPL-2.0-only";
544 fullName = "GNU General Public License v2.0 only";
548 spdxId = "GPL-2.0-with-classpath-exception";
549 fullName = "GNU General Public License v2.0 only (with Classpath exception)";
552 gpl2ClasspathPlus = {
553 fullName = "GNU General Public License v2.0 or later (with Classpath exception)";
554 url = "https://fedoraproject.org/wiki/Licensing/GPL_Classpath_Exception";
558 fullName = "GNU General Public License version 2 only (with OSI approved licenses linking exception)";
559 url = "https://www.mysql.com/about/legal/licensing/foss-exception";
563 spdxId = "GPL-2.0-or-later";
564 fullName = "GNU General Public License v2.0 or later";
568 spdxId = "GPL-3.0-only";
569 fullName = "GNU General Public License v3.0 only";
573 spdxId = "GPL-3.0-or-later";
574 fullName = "GNU General Public License v3.0 or later";
577 gpl3ClasspathPlus = {
578 fullName = "GNU General Public License v3.0 or later (with Classpath exception)";
579 url = "https://fedoraproject.org/wiki/Licensing/GPL_Classpath_Exception";
584 fullName = "Historic Permission Notice and Disclaimer";
588 fullName = "Historical Permission Notice and Disclaimer - sell variant";
589 spdxId = "HPND-sell-variant";
592 # Intel's license, seems free
595 url = "https://old.calculate-linux.org/packages/licenses/iASL";
600 fullName = "Independent JPEG Group License";
604 fullName = "ImageMagick License";
605 spdxId = "imagemagick";
610 fullName = "Imlib2 License";
615 fullName = "Info-ZIP License";
616 url = "http://www.info-zip.org/pub/infozip/license.html";
620 fullName = "INRIA Non-Commercial License Agreement for the CompCert verified compiler";
621 url = "https://compcert.org/doc/LICENSE.txt";
626 fullName = "End User License Agreement for IceSL Software";
627 url = "https://icesl.loria.fr/assets/pdf/EULA_IceSL_binary.pdf";
632 fullName = "INRIA Non-Commercial License Agreement for the Zélus compiler";
633 url = "https://github.com/INRIA/zelus/raw/829f2b97cba93b0543a9ca0272269e6b8fdad356/LICENSE";
639 fullName = "IPA Font License";
644 fullName = "IBM Public License v1.0";
649 fullName = "ISC License";
652 # Proprietary binaries; free to redistribute without modification.
654 fullName = "Databricks Proprietary License";
655 url = "https://pypi.org/project/databricks-connect";
660 fullName = "DataBricks eXtensions aka dbx License";
661 url = "https://github.com/databrickslabs/dbx/blob/743b579a4ac44531f764c6e522dbe5a81a7dc0e4/LICENSE";
663 redistributable = false;
667 fullName = "Fair License";
673 fullName = "Fair Source License, version 0.9";
674 url = "https://fair.io/v0.9.txt";
676 redistributable = true;
680 fullName = "Hippocratic License v3.0";
681 url = "https://firstdonoharm.dev/version/3/0/core.txt";
683 redistributable = true;
687 fullName = "Intel Simplified Software License";
688 url = "https://software.intel.com/en-us/license/intel-simplified-software-license";
693 fullName = "Knuth CTAN License";
694 spdxId = "Knuth-CTAN";
699 fullName = "Licence Art Libre 1.2";
704 fullName = "Licence Art Libre 1.3";
708 fullName = "Lens Terms of Service Agreement";
709 url = "https://k8slens.dev/licenses/tos";
714 spdxId = "LGPL-2.0-only";
715 fullName = "GNU Library General Public License v2 only";
719 spdxId = "LGPL-2.0-or-later";
720 fullName = "GNU Library General Public License v2 or later";
724 spdxId = "LGPL-2.1-only";
725 fullName = "GNU Lesser General Public License v2.1 only";
729 spdxId = "LGPL-2.1-or-later";
730 fullName = "GNU Lesser General Public License v2.1 or later";
734 spdxId = "LGPL-3.0-only";
735 fullName = "GNU Lesser General Public License v3.0 only";
739 spdxId = "LGPL-3.0-or-later";
740 fullName = "GNU Lesser General Public License v3.0 or later";
745 fullName = "Lesser General Public License For Linguistic Resources";
750 fullName = "libpng License";
754 spdxId = "libpng-2.0"; # Used since libpng 1.6.36.
755 fullName = "PNG Reference Library version 2";
759 fullName = "libssh2 License";
760 url = "https://www.libssh2.org/license.html";
765 fullName = "libtiff License";
769 fullName = "Lisp LGPL; GNU Lesser General Public License version 2.1 with Franz Inc. preamble for clarification of LGPL terms in context of Lisp";
770 url = "https://opensource.franz.com/preamble.html";
775 fullName = "LaTeX Project Public License v1.0";
780 fullName = "LaTeX Project Public License v1.2";
784 spdxId = "LPPL-1.3a";
785 fullName = "LaTeX Project Public License v1.3a";
789 spdxId = "LPPL-1.3c";
790 fullName = "LaTeX Project Public License v1.3c";
795 fullName = "Lucent Public License v1.02";
799 fullName = "MirOS License";
800 url = "https://opensource.org/licenses/MirOS";
803 # spdx.org does not (yet) differentiate between the X11 and Expat versions
804 # for details see https://en.wikipedia.org/wiki/MIT_License#Various_versions
807 fullName = "MIT License";
809 # https://spdx.org/licenses/MIT-feh.html
812 fullName = "feh License";
816 spdxId = "MIT-advertising";
817 fullName = "Enlightenment License (e16)";
822 fullName = "MIT No Attribution";
827 fullName = "Mozilla Public License 1.0";
832 fullName = "Mozilla Public License 1.1";
837 fullName = "Mozilla Public License 2.0";
842 fullName = "Microsoft Public License";
846 spdxId = "MulanPSL-2.0";
847 fullName = "Mulan Permissive Software License, Version 2";
848 url = "https://license.coscl.org.cn/MulanPSL2";
853 fullName = "NASA Open Source Agreement 1.3";
859 fullName = "University of Illinois/NCSA Open Source License";
864 fullName = "Netdata Cloud UI License v1.0";
866 redistributable = true; # Only if used in Netdata products.
867 url = "https://raw.githubusercontent.com/netdata/netdata/master/web/gui/v2/LICENSE.md";
872 fullName = "No Limit Public License";
876 spdxId = "NPOSL-3.0";
877 fullName = "Non-Profit Open Software License 3.0";
881 fullName = "Obsidian End User Agreement";
882 url = "https://obsidian.md/eula";
886 ocamlLgplLinkingException = {
887 spdxId = "OCaml-LGPL-linking-exception";
888 fullName = "OCaml LGPL Linking Exception";
892 fullName = "OCamlPro Non Commercial license version 1";
893 url = "https://alt-ergo.ocamlpro.com/http/alt-ergo-2.2.0/OCamlPro-Non-Commercial-License.pdf";
899 fullName = "Open Data Commons Open Database License v1.0";
904 fullName = "SIL Open Font License 1.1";
909 fullName = "Open Market License";
913 spdxId = "OLDAP-2.8";
914 fullName = "Open LDAP Public License v2.8";
919 fullName = "OpenSSL License";
923 spdxId = "OPUBL-1.0";
924 fullName = "Open Publication License v1.0";
929 fullName = "Open Software License 2.0";
934 fullName = "Open Software License 2.1";
939 fullName = "Open Software License 3.0";
943 spdxId = "Parity-7.0.0";
944 fullName = "Parity Public License 7.0.0";
945 url = "https://paritylicense.com/versions/7.0.0.html";
950 fullName = "PHP License v3.01";
954 spdxId = "PostgreSQL";
955 fullName = "PostgreSQL License";
959 fullName = "Postman EULA";
960 url = "https://www.getpostman.com/licenses/postman_base_app";
965 spdxId = "Python-2.0";
966 fullName = "Python Software Foundation License version 2";
967 url = "https://docs.python.org/license.html";
971 fullName = "Public Domain";
975 fullName = " Purdue BSD-Style License"; # also know as lsof license
976 url = "https://enterprise.dejacode.com/licenses/public/purdue-bsd";
980 fullName = "Prosperity-3.0.0";
982 url = "https://prosperitylicense.com/versions/3.0.0.html";
987 fullName = "Qhull License";
992 fullName = "Q Public License 1.0";
996 fullName = "Qwt License, Version 1.0";
997 url = "https://qwt.sourceforge.io/qwtlicense.html";
1002 fullName = "Ruby License";
1006 spdxId = "Sendmail";
1007 fullName = "Sendmail License";
1011 spdxId = "SGI-B-2.0";
1012 fullName = "SGI Free Software License B v2.0";
1015 # Gentoo seems to treat it as a license:
1016 # https://gitweb.gentoo.org/repo/gentoo.git/tree/licenses/SGMLUG?id=7d999af4a47bf55e53e54713d98d145f935935c1
1018 fullName = "SGML UG SGML Parser Materials license";
1022 spdxId = "Sleepycat";
1023 fullName = "Sleepycat License";
1027 shortName = "smail";
1028 fullName = "SMAIL General Public License";
1029 url = "https://sources.debian.org/copyright/license/debianutils/4.9.1/";
1034 fullName = "Server Side Public License";
1035 url = "https://www.mongodb.com/licensing/server-side-public-license";
1038 # The license a slightly modified AGPL but still considered unfree by the
1039 # OSI for what seem like political reasons
1040 redistributable = true; # Definitely redistributable though, it's an AGPL derivative
1045 fullName = "Synthesis Tool Kit 4.3";
1046 url = "https://github.com/thestk/stk/blob/master/LICENSE";
1050 shortName = "sustainable";
1051 fullName = "Sustainable Use License";
1052 url = "https://github.com/n8n-io/n8n/blob/master/LICENSE.md";
1054 redistributable = false; # only free to redistribute "for non-commercial purposes"
1059 fullName = "Timescale License Agreegment";
1060 url = "https://github.com/timescale/timescaledb/blob/main/tsl/LICENSE-TIMESCALE";
1066 fullName = "TCL/TK License";
1070 fullName = "Unicode Character Database License";
1071 url = "https://fedoraproject.org/wiki/Licensing:UCD";
1075 fullName = "Ubuntu Font License 1.0";
1076 url = "https://ubuntu.com/legal/font-licence";
1080 fullName = "Unfree";
1084 unfreeRedistributable = {
1085 fullName = "Unfree redistributable";
1087 redistributable = true;
1090 unfreeRedistributableFirmware = {
1091 fullName = "Unfree redistributable firmware";
1092 redistributable = true;
1093 # Note: we currently consider these "free" for inclusion in the
1094 # channel and NixOS images.
1097 unicode-dfs-2015 = {
1098 spdxId = "Unicode-DFS-2015";
1099 fullName = "Unicode License Agreement - Data Files and Software (2015)";
1102 unicode-dfs-2016 = {
1103 spdxId = "Unicode-DFS-2016";
1104 fullName = "Unicode License Agreement - Data Files and Software (2016)";
1108 spdxId = "Unlicense";
1109 fullName = "The Unlicense";
1113 fullName = "Universal Permissive License";
1114 url = "https://oss.oracle.com/licenses/upl/";
1119 fullName = "Vim License";
1123 fullName = "Oracle VM VirtualBox Extension Pack Personal Use and Evaluation License (PUEL)";
1124 url = "https://www.virtualbox.org/wiki/VirtualBox_PUEL";
1129 fullName = "Volatility Software License, Version 1.0";
1130 url = "https://www.volatilityfoundation.org/license/vsl-v1.0";
1135 fullName = "Vovida Software License v1.0";
1139 spdxId = "Watcom-1.0";
1140 fullName = "Sybase Open Watcom Public License 1.0";
1145 fullName = "W3C Software Notice and License";
1149 fullName = "Wadalab Font License";
1150 url = "https://fedoraproject.org/wiki/Licensing:Wadalab?rd=Licensing/Wadalab";
1155 fullName = "Do What The F*ck You Want To Public License";
1159 spdxId = "wxWindows";
1160 fullName = "wxWindows Library Licence, Version 3.1";
1165 fullName = "X11 License";
1170 url = "http://mcj.sourceforge.net/authors.html#xfig"; # https is broken
1175 fullName = "zlib License";
1180 fullName = "Zope Public License 2.0";
1185 fullName = "Zope Public License 2.1";
1188 # TODO: remove legacy aliases
1190 spdxId = "AGPL-3.0";
1191 fullName = "GNU Affero General Public License v3.0";
1196 fullName = "GNU General Public License v2.0";
1201 fullName = "GNU General Public License v3.0";
1205 spdxId = "LGPL-2.0";
1206 fullName = "GNU Library General Public License v2";
1210 spdxId = "LGPL-2.1";
1211 fullName = "GNU Lesser General Public License v2.1";
1215 spdxId = "LGPL-3.0";
1216 fullName = "GNU Lesser General Public License v3.0";