1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2014, 2015, 2017, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
4 ;;; Copyright © 2012, 2013 Nikita Karetnikov <nikita@karetnikov.org>
5 ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
6 ;;; Copyright © 2015, 2019 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
8 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
9 ;;; Copyright © 2016 Fabian Harfert <fhmgufs@web.de>
10 ;;; Copyright © 2016 Rene Saavedra <rennes@openmailbox.org>
11 ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
12 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
13 ;;; Copyright © 2017 Petter <petter@mykolab.ch>
14 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
15 ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
16 ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
18 ;;; This file is part of GNU Guix.
20 ;;; GNU Guix is free software; you can redistribute it and/or modify it
21 ;;; under the terms of the GNU General Public License as published by
22 ;;; the Free Software Foundation; either version 3 of the License, or (at
23 ;;; your option) any later version.
25 ;;; GNU Guix is distributed in the hope that it will be useful, but
26 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
27 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 ;;; GNU General Public License for more details.
30 ;;; You should have received a copy of the GNU General Public License
31 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
33 (define-module (guix licenses)
34 #:use-module (srfi srfi-9)
35 #:export (license? license-name license-uri license-comment
42 cc-by2.0 cc-by3.0 cc-by4.0
43 cc-by-sa2.0 cc-by-sa3.0 cc-by-sa4.0
46 cecill cecill-b cecill-c
47 artistic2.0 clarified-artistic
57 gpl1 gpl1+ gpl2 gpl2+ gpl3 gpl3+
59 fdl1.1+ fdl1.2+ fdl1.3+
67 lgpl2.0 lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3 lgpl3+ llgpl
68 lppl lppl1.0+ lppl1.1+ lppl1.2 lppl1.2+
103 (define-record-type <license>
104 (license name uri comment)
108 (comment license-comment))
112 ;;; Available licenses.
114 ;;; This list is based on these links:
115 ;;; https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix
116 ;;; https://www.gnu.org/licenses/license-list
122 "https://gnu.org/licenses/agpl.html"
123 "https://gnu.org/licenses/why-affero-gpl.html"))
127 "https://gnu.org/licenses/agpl.html"
128 "https://gnu.org/licenses/why-affero-gpl.html"))
132 "https://gnu.org/licenses/agpl.html"
133 "https://gnu.org/licenses/why-affero-gpl.html"))
137 "http://directory.fsf.org/wiki/License:Apache1.1"
138 "https://www.gnu.org/licenses/license-list#apache1"))
142 "http://directory.fsf.org/wiki/License:Apache2.0"
143 "https://www.gnu.org/licenses/license-list#apache2"))
147 "http://directory.fsf.org/wiki/License:Boost1.0"
148 "https://www.gnu.org/licenses/license-list#boost"))
152 "http://directory.fsf.org/wiki/License:FreeBSD"
153 "https://www.gnu.org/licenses/license-list#FreeBSD"))
156 (license "Modified BSD"
157 "http://directory.fsf.org/wiki/License:BSD_3Clause"
158 "https://www.gnu.org/licenses/license-list#ModifiedBSD"))
161 (license "Original BSD"
162 "http://directory.fsf.org/wiki/License:BSD_4Clause"
163 "https://www.gnu.org/licenses/license-list#OriginalBSD"))
165 (define* (non-copyleft uri #:optional (comment ""))
166 "Return a lax, permissive, non-copyleft license (for example a variant of
167 the 3-clause BSD license or the Expat license), whose full text can be found
168 at URI, which may be a file:// URI pointing the package's tree."
169 (license "non-copyleft"
172 "This is a lax, non-copyleft free software license. "
173 "Check the URI for details. "
178 "http://directory.fsf.org/wiki/License:CC0"
179 "http://www.gnu.org/licenses/license-list.html#CC0"))
182 (license "CC-BY-SA 4.0"
183 "http://creativecommons.org/licenses/by-sa/4.0/"
184 "Creative Commons Attribution-ShareAlike 4.0 International"))
187 (license "CC-BY-SA 3.0"
188 "http://creativecommons.org/licenses/by-sa/3.0/"
189 "Creative Commons Attribution-ShareAlike 3.0 Unported"))
192 (license "CC-BY-SA 2.0"
193 "http://creativecommons.org/licenses/by-sa/2.0/"
194 "Creative Commons Attribution-ShareAlike 2.0 Generic"))
198 "http://creativecommons.org/licenses/by/4.0/"
199 "Creative Commons Attribution 4.0 Unported"))
203 "http://creativecommons.org/licenses/by/3.0/"
204 "Creative Commons Attribution 3.0 Unported"))
208 "http://creativecommons.org/licenses/by/2.0/"
209 "Creative Commons Attribution 2.0 Generic"))
211 (define cc-sampling-plus-1.0
212 (license "CC-Sampling+ 1.0"
213 "https://creativecommons.org/licenses/sampling+/1.0"
214 "Creative Commons Sampling Plus 1.0"))
218 "http://directory.fsf.org/wiki/License:CDDLv1.0"
219 "https://www.gnu.org/licenses/license-list#CDDL"))
221 ;; CDDL1.1 is the same as 1.0, except that "Sun Microsystems, Inc" becomes "Oracle",
222 ;; "LOST PROFITS" becoms "LOSS OF GOODWILL" and a section is added between 6.2
226 "https://oss.oracle.com/licenses/CDDL+GPL-1.1"
227 "https://www.gnu.org/licenses/license-list#CDDL"))
229 (define cecill ;copyleft
231 "http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.html"
232 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
234 (define cecill-b ;non-copyleft
236 "http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html"
237 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
239 (define cecill-c ;weak copyleft
241 "http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html"
242 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
245 (license "Artistic License 2.0"
246 "http://www.perlfoundation.org/artistic_license_2_0"
247 "http://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
249 (define clarified-artistic
250 (license "Clarified Artistic"
251 ;; http://directory.fsf.org/wiki/User:Jgay/license-categorization#Clarified_Artistic_License
252 "http://gianluca.dellavedova.org/2011/01/03/clarified-artistic-license/"
253 "https://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
255 (define copyleft-next
256 (license "copyleft-next"
257 "https://raw.github.com/richardfontana/copyleft-next/master/Releases/copyleft-next-0.3.0"
258 "GPL-compatible copyleft license"))
262 "http://directory.fsf.org/wiki/License:CPLv1.0"
263 "https://www.gnu.org/licenses/license-list#CommonPublicLicense10"))
267 "http://directory.fsf.org/wiki/License:EDLv1.0"
268 "https://eclipse.org/org/documents/edl-v10.php"))
272 "http://directory.fsf.org/wiki/License:EPLv1.0"
273 "https://www.gnu.org/licenses/license-list#EPL"))
277 "https://www.eclipse.org/legal/epl-2.0/"
278 "https://www.gnu.org/licenses/license-list#EPL2"))
282 "http://directory.fsf.org/wiki/License:Expat"
283 "https://www.gnu.org/licenses/license-list.html#Expat"))
287 "http://directory.fsf.org/wiki/License:Freetype"
288 "https://www.gnu.org/licenses/license-list.html#freetype"))
292 "https://liballeg.org/license.html"
293 "The Allegro 4 license"))
297 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
302 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
307 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
308 "https://www.gnu.org/licenses/license-list#GPLv2"))
312 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
313 "https://www.gnu.org/licenses/license-list#GPLv2"))
317 "https://www.gnu.org/licenses/gpl.html"
318 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
322 "https://www.gnu.org/licenses/gpl.html"
323 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
325 ;; The “GUST font license” is legally equivalent to LPPL v1.3c as it only
326 ;; extends the LPPL with an optional request.
328 (license "GUST font license 1.0"
329 "http://www.gust.org.pl/projects/e-foundry/licenses/GUST-FONT-LICENSE.txt"
330 "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
334 "https://www.gnu.org/licenses/fdl-1.1"
335 "https://www.gnu.org/licenses/license-list#FDL"))
339 "https://www.gnu.org/licenses/fdl-1.2"
340 "https://www.gnu.org/licenses/license-list#FDL"))
344 "https://www.gnu.org/licenses/fdl.html"
345 "https://www.gnu.org/licenses/license-list#FDL"))
348 (license "FreeBSD Documentation License"
349 "https://www.freebsd.org/copyright/freebsd-doc-license.html"
350 "https://www.gnu.org/licenses/license-list.html#FreeBSDDL"))
353 (license "Open Publication License 1.0 or later"
354 "http://opencontent.org/openpub/"
355 "https://www.gnu.org/licenses/license-list#OpenPublicationL"))
359 "http://directory.fsf.org/wiki/License:ISC"
360 "https://www.gnu.org/licenses/license-list.html#ISC"))
364 "http://directory.fsf.org/wiki/License:JPEG"
365 "https://www.gnu.org/licenses/license-list#ijg"))
369 "http://directory.fsf.org/wiki/License:IBMPLv1.0"
370 "https://www.gnu.org/licenses/license-list#IBMPL"))
374 "http://directory.fsf.org/wiki/License:Imlib2"
375 "https://www.gnu.org/licenses/license-list#imlib"))
378 (license "IPA Font License"
379 "http://directory.fsf.org/wiki/License:IPA_Font_License"
380 "https://www.gnu.org/licenses/license-list#IPAFONT"))
383 (license "Donald Knuth's license for TeX"
384 "http://www.ctan.org/license/knuth"
385 "Modification are only permitted under a different name."))
389 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
390 "https://www.gnu.org/licenses/why-not-lgpl.html"))
394 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
395 "https://www.gnu.org/licenses/why-not-lgpl.html"))
399 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
400 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
404 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
405 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
409 "https://www.gnu.org/licenses/lgpl.html"
410 "https://www.gnu.org/licenses/license-list#LGPLv3"))
414 "https://www.gnu.org/licenses/lgpl.html"
415 "https://www.gnu.org/licenses/license-list#LGPLv3"))
419 "https://opensource.franz.com/preamble.html"
420 "Lisp Lesser General Public License"))
423 (license "LPPL (any version)"
424 "https://www.latex-project.org/lppl/lppl-1-0/"
425 "LaTeX Project Public License 1.0"))
429 "https://www.latex-project.org/lppl/lppl-1-0/"
430 "LaTeX Project Public License 1.0"))
434 "https://www.latex-project.org/lppl/lppl-1-1/"
435 "LaTeX Project Public License 1.1"))
439 "http://directory.fsf.org/wiki/License:LPPLv1.2"
440 "https://www.gnu.org/licenses/license-list#LPPL-1.2"))
444 "http://directory.fsf.org/wiki/License:LPPLv1.2"
445 "https://www.gnu.org/licenses/license-list#LPPL-1.2"))
449 "https://www.latex-project.org/lppl/lppl-1-3/"
450 "LaTeX Project Public License 1.3"))
454 "https://www.latex-project.org/lppl/lppl-1-3/"
455 "LaTeX Project Public License 1.3+"))
459 "http://directory.fsf.org/wiki/License:LPPLv1.3a"
460 "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
463 (license "LPPL 1.3a+"
464 "http://directory.fsf.org/wiki/License:LPPLv1.3a"
465 "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
469 "https://www.latex-project.org/lppl/lppl-1-3b/"
470 "LaTeX Project Public License 1.3b"))
473 (license "LPPL 1.3b+"
474 "https://www.latex-project.org/lppl/lppl-1-3b/"
475 "LaTeX Project Public License 1.3b or later"))
479 "https://www.latex-project.org/lppl/lppl-1-3c/"
480 "LaTeX Project Public License 1.3c"))
483 (license "LPPL 1.3c+"
484 "https://www.latex-project.org/lppl/lppl-1-3c/"
485 "LaTeX Project Public License 1.3c or later"))
489 "https://www.mirbsd.org/MirOS-Licence.htm"
494 "http://www.mozilla.org/MPL/1.0/"
495 "https://www.gnu.org/licenses/license-list.html#MPL"))
499 "http://directory.fsf.org/wiki/License:MPLv1.1"
500 "https://www.gnu.org/licenses/license-list#MPL"))
504 "http://directory.fsf.org/wiki/License:MPLv2.0"
505 "https://www.gnu.org/licenses/license-list#MPL-2.0"))
508 (license "Ms-PL" ;Microsoft Public License
509 "http://directory.fsf.org/wiki/License:MsPL"
510 "http://www.gnu.org/licenses/license-list.html#ms-pl"))
513 (license "NCSA/University of Illinois Open Source License"
514 "http://directory.fsf.org/wiki/License:IllinoisNCSA"
515 "https://www.gnu.org/licenses/license-list#NCSA"))
518 (license "Nmap license"
519 "https://svn.nmap.org/nmap/COPYING"
520 "https://fedoraproject.org/wiki/Licensing/Nmap"))
523 (license "Open Government Licence for Public Sector Information"
524 "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/1/"
529 "http://directory.fsf.org/wiki/License:OpenSSL"
530 "https://www.gnu.org/licenses/license-list#OpenSSL"))
533 (license "OpenLDAPv2.8"
534 "http://directory.fsf.org/wiki/License:OpenLDAPv2.8"
535 "https://www.gnu.org/licenses/license-list#newOpenLDAP"))
536 ;; lists OpenLDAPv2.7, which is virtually identical
539 ;; The license of Perl, GPLv1+ or Artistic (we ignore the latter here).
540 ;; We define this alias to avoid circular dependencies introduced by the use
541 ;; of the '(package-license perl)' idiom.
545 (license "Python Software Foundation License"
546 "http://docs.python.org/license.html"
549 (define public-domain
550 (license "Public Domain"
551 "http://directory.fsf.org/wiki/License:PublicDomain"
552 "https://www.gnu.org/licenses/license-list#PublicDomain"))
556 "http://directory.fsf.org/wiki/License:QPLv1.0"
557 "http://www.gnu.org/licenses/license-list.html#QPL"))
561 "http://qwt.sourceforge.net/qwtlicense.html"
562 "GNU Lesser General Public License with exceptions"))
566 "http://repoze.org/LICENSE.txt"
567 "A BSD-like license with a clause requiring all changes to be
568 attributed by author and date."))
571 (license "Ruby License"
572 "http://directory.fsf.org/wiki/License:Ruby"
573 "https://www.ruby-lang.org/en/about/license.txt"))
576 (license "SGI Free Software License B, version 2.0"
577 "http://directory.fsf.org/wiki/License:SGIFreeBv2"
578 "https://www.gnu.org/licenses/license-list.html#SGIFreeB"))
581 (license "SIL OFL 1.1"
582 "http://scripts.sil.org/OFL_web"
583 "https://www.gnu.org/licenses/license-list#SILOFL"))
587 "http://directory.fsf.org/wiki/License:Sleepycat"
588 "https://www.gnu.org/licenses/license-list#BerkeleyDB"))
592 "http://www.tcl.tk/software/tcltk/license.html"
593 "A non-copyleft free software license from the Tcl/Tk project"))
597 "http://directory.fsf.org/wiki/License:Vim7.2"
598 "http://www.gnu.org/licenses/license-list.html#Vim"))
602 "https://directory.fsf.org/wiki/License:Unicode"
603 "http://www.gnu.org/licenses/license-list.html#Unicode"))
607 "https://unlicense.org/"
608 "https://www.gnu.org/licenses/license-list.html#Unlicense"))
611 (license "W3C Software Notice and License"
612 "https://directory.fsf.org/wiki/License:W3C_31Dec2002"
613 "https://www.gnu.org/licenses/license-list.en.html#W3C"))
617 "http://www.wtfpl.net"
618 "http://www.wtfpl.net/about/"))
620 (define wxwindows3.1+
621 (license "wxWindows 3.1+"
622 "https://wxwidgets.org/about/licence"
623 "https://www.gnu.org/licenses/license-list.html#Wxwind"))
627 "http://directory.fsf.org/wiki/License:X11"
628 "https://www.gnu.org/licenses/license-list#X11License"))
630 (define* (x11-style uri #:optional (comment ""))
631 "Return an X11-style license, whose full text can be found at URI,
632 which may be a file:// URI pointing the package's tree."
636 "This is an X11-style, non-copyleft free software license. "
637 "Check the URI for details. "
641 (license "Zope Public License 2.1"
642 "http://directory.fsf.org/wiki?title=License:ZopePLv2.1"
643 "https://www.gnu.org/licenses/license-list.html#Zope2.0"))
647 "https://zlib.net/zlib_license.html"
648 "https://www.gnu.org/licenses/license-list#ZLib"))
652 "https://directory.fsf.org/wiki/License:HPND"
653 "https://www.gnu.org/licenses/license-list#HPND"))
655 (define* (fsf-free uri #:optional (comment ""))
656 "Return a license that does not fit any of the ones above or a collection
657 of licenses, approved as free by the FSF. More details can be found at URI."
662 (define* (fsdg-compatible uri #:optional (comment ""))
663 "Return a license that does not fit any of the ones above or a collection
664 of licenses, not necessarily free, but in accordance with FSDG as Non-functional
665 Data. More details can be found at URI. See also
666 https://www.gnu.org/distros/free-system-distribution-guidelines.en.html#non-functional-data."
667 (license "FSDG-compatible"
671 ;;; licenses.scm ends here