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";
60 fullName = "Aladdin Free Public License";
65 fullName = "Amazon Software License";
66 url = "https://aws.amazon.com/asl/";
71 fullName = "AMD License Agreement";
72 url = "https://developer.amd.com/amd-license-agreement/";
77 fullName = "Alliance for Open Media Patent License 1.0";
78 url = "https://aomedia.org/license/patent-license/";
83 fullName = "Apple Public Source License 1.0";
84 url = "https://web.archive.org/web/20040701000000*/http://www.opensource.apple.com/apsl/1.0.txt";
89 fullName = "Apple Public Source License 2.0";
93 fullName = "Arphic Public License";
94 url = "https://www.freedesktop.org/wiki/Arphic_Public_License/";
98 spdxId = "Artistic-1.0";
99 fullName = "Artistic License 1.0";
103 spdxId = "Artistic-2.0";
104 fullName = "Artistic License 2.0";
108 spdxId = "Apache-2.0";
109 fullName = "Apache License 2.0";
113 spdxId = "Bitstream-Vera";
114 fullName = "Bitstream Vera Font License";
118 url = "https://blitiri.com.ar/p/bola/";
119 fullName = "Buena Onda License Agreement 1.1";
124 fullName = "Boost Software License 1.0";
129 fullName = "Beerware License";
133 spdxId = "BlueOak-1.0.0";
134 fullName = "Blue Oak Model License 1.0.0";
139 fullName = "BSD Zero Clause License";
143 spdxId = "BSD-1-Clause";
144 fullName = "BSD 1-Clause License";
148 spdxId = "BSD-2-Clause";
149 fullName = ''BSD 2-clause "Simplified" License'';
153 spdxId = "BSD-2-Clause-Patent";
154 fullName = "BSD-2-Clause Plus Patent License";
158 spdxId = "BSD-2-Clause-Views";
159 fullName = "BSD 2-Clause with views sentence";
163 spdxId = "BSD-3-Clause";
164 fullName = ''BSD 3-clause "New" or "Revised" License'';
168 spdxId = "BSD-4-Clause";
169 fullName = ''BSD 4-clause "Original" or "Old" License'';
172 bsdOriginalShortened = {
173 spdxId = "BSD-4-Clause-Shortened";
174 fullName = "BSD 4 Clause Shortened";
178 spdxId = "BSD-4-Clause-UC";
179 fullName = "BSD 4-Clause University of California-Specific";
183 spdxId = "BSD-Protection";
184 fullName = "BSD Protection License";
188 fullName = "Business Source License 1.1";
189 url = "https://mariadb.com/bsl11";
194 fullName = "Cryptographic Autonomy License version 1.0 (CAL-1.0)";
195 url = "https://opensource.org/licenses/CAL-1.0";
199 fullName = "Common Attack Pattern Enumeration and Classification";
200 url = "https://capec.mitre.org/about/termsofuse.html";
204 spdxId = "ClArtistic";
205 fullName = "Clarified Artistic License";
210 fullName = "Creative Commons Zero v1.0 Universal";
214 spdxId = "CC-BY-NC-SA-2.0";
215 fullName = "Creative Commons Attribution Non Commercial Share Alike 2.0";
220 spdxId = "CC-BY-NC-SA-2.5";
221 fullName = "Creative Commons Attribution Non Commercial Share Alike 2.5";
226 spdxId = "CC-BY-NC-SA-3.0";
227 fullName = "Creative Commons Attribution Non Commercial Share Alike 3.0";
232 spdxId = "CC-BY-NC-SA-4.0";
233 fullName = "Creative Commons Attribution Non Commercial Share Alike 4.0";
238 spdxId = "CC-BY-NC-3.0";
239 fullName = "Creative Commons Attribution Non Commercial 3.0 Unported";
244 spdxId = "CC-BY-NC-4.0";
245 fullName = "Creative Commons Attribution Non Commercial 4.0 International";
250 spdxId = "CC-BY-ND-3.0";
251 fullName = "Creative Commons Attribution-No Derivative Works v3.00";
256 spdxId = "CC-BY-SA-2.5";
257 fullName = "Creative Commons Attribution Share Alike 2.5";
261 spdxId = "CC-BY-3.0";
262 fullName = "Creative Commons Attribution 3.0";
266 spdxId = "CC-BY-SA-3.0";
267 fullName = "Creative Commons Attribution Share Alike 3.0";
271 spdxId = "CC-BY-4.0";
272 fullName = "Creative Commons Attribution 4.0";
276 spdxId = "CC-BY-SA-4.0";
277 fullName = "Creative Commons Attribution Share Alike 4.0";
282 fullName = "Common Development and Distribution License 1.0";
286 spdxId = "CECILL-2.0";
287 fullName = "CeCILL Free Software License Agreement v2.0";
291 spdxId = "CECILL-2.1";
292 fullName = "CeCILL Free Software License Agreement v2.1";
297 fullName = "CeCILL-B Free Software License Agreement";
302 fullName = "CeCILL-C Free Software License Agreement";
307 fullName = "Common Public Attribution License 1.0";
312 fullName = "Common Public License 1.0";
317 fullName = "curl License";
322 fullName = "DOC License";
327 fullName = "Detection Rule License 1.0";
331 fullName = "EPSON AVASYS PUBLIC LICENSE";
332 url = "https://avasys.jp/hp/menu000000700/hpg000000603.htm";
338 fullName = "Eiffel Forum License v1.0";
343 fullName = "Eiffel Forum License v2.0";
347 fullName = "ELASTIC LICENSE";
348 url = "https://github.com/elastic/elasticsearch/blob/master/licenses/ELASTIC-LICENSE.txt";
354 fullName = "Eclipse Public License 1.0";
359 fullName = "Eclipse Public License 2.0";
363 fullName = "Seiko Epson Corporation Software License Agreement for Linux";
364 url = "https://download.ebz.epson.net/dsc/du/02/eula/global/LINUX_EN.html";
370 fullName = "European Union Public License 1.1";
375 fullName = "European Union Public License 1.2";
379 spdxId = "GFDL-1.1-only";
380 fullName = "GNU Free Documentation License v1.1 only";
384 spdxId = "GFDL-1.1-or-later";
385 fullName = "GNU Free Documentation License v1.1 or later";
389 spdxId = "GFDL-1.2-only";
390 fullName = "GNU Free Documentation License v1.2 only";
394 spdxId = "GFDL-1.2-or-later";
395 fullName = "GNU Free Documentation License v1.2 or later";
399 spdxId = "GFDL-1.3-only";
400 fullName = "GNU Free Documentation License v1.3 only";
404 spdxId = "GFDL-1.3-or-later";
405 fullName = "GNU Free Documentation License v1.3 or later";
409 fullName = "Floodgap Free Software License";
410 url = "https://www.floodgap.com/software/ffsl/license.html";
415 fullName = "Unspecified free software license";
420 fullName = "Freetype Project License";
424 fullName = "Geant4 Software License";
425 url = "https://geant4.web.cern.ch/geant4/license/LICENSE.html";
429 fullName = "GeoGebra Non-Commercial License Agreement";
430 url = "https://www.geogebra.org/license";
435 fullName = "GeneralUser GS License v2.0";
436 url = "http://www.schristiancollins.com/generaluser.php"; # license included in sources
440 spdxId = "GPL-1.0-only";
441 fullName = "GNU General Public License v1.0 only";
445 spdxId = "GPL-1.0-or-later";
446 fullName = "GNU General Public License v1.0 or later";
450 spdxId = "GPL-2.0-only";
451 fullName = "GNU General Public License v2.0 only";
455 spdxId = "GPL-2.0-with-classpath-exception";
456 fullName = "GNU General Public License v2.0 only (with Classpath exception)";
459 gpl2ClasspathPlus = {
460 fullName = "GNU General Public License v2.0 or later (with Classpath exception)";
461 url = "https://fedoraproject.org/wiki/Licensing/GPL_Classpath_Exception";
465 fullName = "GNU General Public License version 2 only (with OSI approved licenses linking exception)";
466 url = "https://www.mysql.com/about/legal/licensing/foss-exception";
470 spdxId = "GPL-2.0-or-later";
471 fullName = "GNU General Public License v2.0 or later";
475 spdxId = "GPL-3.0-only";
476 fullName = "GNU General Public License v3.0 only";
480 spdxId = "GPL-3.0-or-later";
481 fullName = "GNU General Public License v3.0 or later";
484 gpl3ClasspathPlus = {
485 fullName = "GNU General Public License v3.0 or later (with Classpath exception)";
486 url = "https://fedoraproject.org/wiki/Licensing/GPL_Classpath_Exception";
491 fullName = "Historic Permission Notice and Disclaimer";
495 fullName = "Historical Permission Notice and Disclaimer - sell variant";
496 spdxId = "HPND-sell-variant";
499 # Intel's license, seems free
502 url = "https://old.calculate-linux.org/packages/licenses/iASL";
507 fullName = "Independent JPEG Group License";
511 fullName = "ImageMagick License";
512 spdxId = "imagemagick";
517 fullName = "Imlib2 License";
521 fullName = "INRIA Non-Commercial License Agreement for the CompCert verified compiler";
522 url = "https://compcert.org/doc/LICENSE.txt";
527 fullName = "INRIA Non-Commercial License Agreement for IceSL";
528 url = "https://icesl.loria.fr/assets/pdf/EULA_IceSL_binary.pdf";
534 fullName = "IPA Font License";
539 fullName = "IBM Public License v1.0";
544 fullName = "ISC License";
547 # Proprietary binaries; free to redistribute without modification.
549 fullName = "Databricks Proprietary License";
550 url = "https://pypi.org/project/databricks-connect";
555 fullName = "DataBricks eXtensions aka dbx License";
556 url = "https://github.com/databrickslabs/dbx/blob/743b579a4ac44531f764c6e522dbe5a81a7dc0e4/LICENSE";
558 redistributable = false;
562 fullName = "Intel Simplified Software License";
563 url = "https://software.intel.com/en-us/license/intel-simplified-software-license";
569 fullName = "Licence Art Libre 1.2";
574 fullName = "Licence Art Libre 1.3";
578 spdxId = "LGPL-2.0-only";
579 fullName = "GNU Library General Public License v2 only";
583 spdxId = "LGPL-2.0-or-later";
584 fullName = "GNU Library General Public License v2 or later";
588 spdxId = "LGPL-2.1-only";
589 fullName = "GNU Lesser General Public License v2.1 only";
593 spdxId = "LGPL-2.1-or-later";
594 fullName = "GNU Lesser General Public License v2.1 or later";
598 spdxId = "LGPL-3.0-only";
599 fullName = "GNU Lesser General Public License v3.0 only";
603 spdxId = "LGPL-3.0-or-later";
604 fullName = "GNU Lesser General Public License v3.0 or later";
609 fullName = "Lesser General Public License For Linguistic Resources";
614 fullName = "libpng License";
618 spdxId = "libpng-2.0"; # Used since libpng 1.6.36.
619 fullName = "PNG Reference Library version 2";
623 fullName = "libssh2 License";
624 url = "https://www.libssh2.org/license.html";
629 fullName = "libtiff License";
633 fullName = "Lisp LGPL; GNU Lesser General Public License version 2.1 with Franz Inc. preamble for clarification of LGPL terms in context of Lisp";
634 url = "https://opensource.franz.com/preamble.html";
638 spdxId = "LLVM-exception";
639 fullName = "LLVM Exception"; # LLVM exceptions to the Apache 2.0 License
644 fullName = "LaTeX Project Public License v1.2";
648 spdxId = "LPPL-1.3c";
649 fullName = "LaTeX Project Public License v1.3c";
654 fullName = "Lucent Public License v1.02";
658 fullName = "MirOS License";
659 url = "https://opensource.org/licenses/MirOS";
662 # spdx.org does not (yet) differentiate between the X11 and Expat versions
663 # for details see https://en.wikipedia.org/wiki/MIT_License#Various_versions
666 fullName = "MIT License";
668 # https://spdx.org/licenses/MIT-feh.html
671 fullName = "feh License";
675 spdxId = "MIT-advertising";
676 fullName = "Enlightenment License (e16)";
681 fullName = "MIT No Attribution";
686 fullName = "Mozilla Public License 1.0";
691 fullName = "Mozilla Public License 1.1";
696 fullName = "Mozilla Public License 2.0";
701 fullName = "Microsoft Public License";
706 fullName = "NASA Open Source Agreement 1.3";
712 fullName = "University of Illinois/NCSA Open Source License";
716 spdxId = "NPOSL-3.0";
717 fullName = "Non-Profit Open Software License 3.0";
721 fullName = "Obsidian End User Agreement";
722 url = "https://obsidian.md/eula";
727 fullName = "OCamlPro Non Commercial license version 1";
728 url = "https://alt-ergo.ocamlpro.com/http/alt-ergo-2.2.0/OCamlPro-Non-Commercial-License.pdf";
734 fullName = "Open Data Commons Open Database License v1.0";
739 fullName = "SIL Open Font License 1.1";
744 fullName = "Open Market License";
748 spdxId = "OLDAP-2.8";
749 fullName = "Open LDAP Public License v2.8";
754 fullName = "OpenSSL License";
759 fullName = "Open Software License 2.0";
764 fullName = "Open Software License 2.1";
769 fullName = "Open Software License 3.0";
773 spdxId = "Parity-7.0.0";
774 fullName = "Parity Public License 7.0.0";
775 url = "https://paritylicense.com/versions/7.0.0.html";
780 fullName = "PHP License v3.01";
784 spdxId = "PostgreSQL";
785 fullName = "PostgreSQL License";
789 fullName = "Postman EULA";
790 url = "https://www.getpostman.com/licenses/postman_base_app";
795 spdxId = "Python-2.0";
796 fullName = "Python Software Foundation License version 2";
797 url = "https://docs.python.org/license.html";
801 fullName = "Public Domain";
805 fullName = " Purdue BSD-Style License"; # also know as lsof license
806 url = "https://enterprise.dejacode.com/licenses/public/purdue-bsd";
810 fullName = "Prosperity-3.0.0";
812 url = "https://prosperitylicense.com/versions/3.0.0.html";
817 fullName = "Qhull License";
822 fullName = "Q Public License 1.0";
826 fullName = "Qwt License, Version 1.0";
827 url = "https://qwt.sourceforge.io/qwtlicense.html";
832 fullName = "Ruby License";
837 fullName = "Sendmail License";
841 spdxId = "SGI-B-2.0";
842 fullName = "SGI Free Software License B v2.0";
846 spdxId = "Sleepycat";
847 fullName = "Sleepycat License";
852 fullName = "SMAIL General Public License";
853 url = "https://sources.debian.org/copyright/license/debianutils/4.9.1/";
858 fullName = "Server Side Public License";
859 url = "https://www.mongodb.com/licensing/server-side-public-license";
862 # The license a slightly modified AGPL but still considered unfree by the
863 # OSI for what seem like political reasons
864 redistributable = true; # Definitely redistributable though, it's an AGPL derivative
869 fullName = "Synthesis Tool Kit 4.3";
870 url = "https://github.com/thestk/stk/blob/master/LICENSE";
875 fullName = "TCL/TK License";
879 fullName = "Unicode Character Database License";
880 url = "https://fedoraproject.org/wiki/Licensing:UCD";
884 fullName = "Ubuntu Font License 1.0";
885 url = "https://ubuntu.com/legal/font-licence";
893 unfreeRedistributable = {
894 fullName = "Unfree redistributable";
896 redistributable = true;
899 unfreeRedistributableFirmware = {
900 fullName = "Unfree redistributable firmware";
901 redistributable = true;
902 # Note: we currently consider these "free" for inclusion in the
903 # channel and NixOS images.
907 spdxId = "Unicode-DFS-2015";
908 fullName = "Unicode License Agreement - Data Files and Software (2015)";
912 spdxId = "Unicode-DFS-2016";
913 fullName = "Unicode License Agreement - Data Files and Software (2016)";
917 spdxId = "Unlicense";
918 fullName = "The Unlicense";
922 fullName = "Universal Permissive License";
923 url = "https://oss.oracle.com/licenses/upl/";
928 fullName = "Vim License";
932 fullName = "Oracle VM VirtualBox Extension Pack Personal Use and Evaluation License (PUEL)";
933 url = "https://www.virtualbox.org/wiki/VirtualBox_PUEL";
938 fullName = "Volatility Software License, Version 1.0";
939 url = "https://www.volatilityfoundation.org/license/vsl-v1.0";
944 fullName = "Vovida Software License v1.0";
948 spdxId = "Watcom-1.0";
949 fullName = "Sybase Open Watcom Public License 1.0";
954 fullName = "W3C Software Notice and License";
958 fullName = "Wadalab Font License";
959 url = "https://fedoraproject.org/wiki/Licensing:Wadalab?rd=Licensing/Wadalab";
964 fullName = "Do What The F*ck You Want To Public License";
968 spdxId = "wxWindows";
969 fullName = "wxWindows Library Licence, Version 3.1";
974 url = "http://mcj.sourceforge.net/authors.html#xfig"; # https is broken
979 fullName = "zlib License";
984 fullName = "Zope Public License 2.0";
989 fullName = "Zope Public License 2.1";
992 # TODO: remove legacy aliases
995 fullName = "GNU Affero General Public License v3.0";
1000 fullName = "GNU General Public License v2.0";
1005 fullName = "GNU General Public License v3.0";
1009 spdxId = "LGPL-2.0";
1010 fullName = "GNU Library General Public License v2";
1014 spdxId = "LGPL-2.1";
1015 fullName = "GNU Lesser General Public License v2.1";
1019 spdxId = "LGPL-3.0";
1020 fullName = "GNU Lesser General Public License v3.0";