1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2014, 2015, 2017 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 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 ng0 <ng0@libertad.pw>
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
41 bsd-style ;deprecated!
43 cc-by2.0 cc-by3.0 cc-by4.0
44 cc-by-sa2.0 cc-by-sa3.0 cc-by-sa4.0
47 cecill cecill-b cecill-c
48 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+
68 lppl lppl1.0+ lppl1.2 lppl1.2+
98 (define-record-type <license>
99 (license name uri comment)
103 (comment license-comment))
107 ;;; Available licenses.
109 ;;; This list is based on these links:
110 ;;; https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix
111 ;;; https://www.gnu.org/licenses/license-list
117 "https://gnu.org/licenses/agpl.html"
118 "https://gnu.org/licenses/why-affero-gpl.html"))
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 "http://directory.fsf.org/wiki/License:Apache1.1"
133 "https://www.gnu.org/licenses/license-list#apache1"))
137 "http://directory.fsf.org/wiki/License:Apache2.0"
138 "https://www.gnu.org/licenses/license-list#apache2"))
142 "http://directory.fsf.org/wiki/License:Boost1.0"
143 "https://www.gnu.org/licenses/license-list#boost"))
147 "http://directory.fsf.org/wiki/License:FreeBSD"
148 "https://www.gnu.org/licenses/license-list#FreeBSD"))
151 (license "Modified BSD"
152 "http://directory.fsf.org/wiki/License:BSD_3Clause"
153 "https://www.gnu.org/licenses/license-list#ModifiedBSD"))
156 (license "Original BSD"
157 "http://directory.fsf.org/wiki/License:BSD_4Clause"
158 "https://www.gnu.org/licenses/license-list#OriginalBSD"))
160 (define* (non-copyleft uri #:optional (comment ""))
161 "Return a lax, permissive, non-copyleft license (for example a variant of
162 the 3-clause BSD license or the Expat license), whose full text can be found
163 at URI, which may be a file:// URI pointing the package's tree."
164 (license "non-copyleft"
167 "This is a lax, non-copyleft free software license. "
168 "Check the URI for details. "
172 ;; This alias is kept for backward-compatibility. Do not use it for new
173 ;; packages: it is ambiguous, as rightfully explained at
174 ;; <http://www.gnu.org/philosophy/words-to-avoid.html#BSD-style>.
179 "http://directory.fsf.org/wiki/License:CC0"
180 "http://www.gnu.org/licenses/license-list.html#CC0"))
183 (license "CC-BY-SA 4.0"
184 "http://creativecommons.org/licenses/by-sa/4.0/"
185 "Creative Commons Attribution-ShareAlike 4.0 International"))
188 (license "CC-BY-SA 3.0"
189 "http://creativecommons.org/licenses/by-sa/3.0/"
190 "Creative Commons Attribution-ShareAlike 3.0 Unported"))
193 (license "CC-BY-SA 2.0"
194 "http://creativecommons.org/licenses/by-sa/2.0/"
195 "Creative Commons Attribution-ShareAlike 2.0 Generic"))
199 "http://creativecommons.org/licenses/by/4.0/"
200 "Creative Commons Attribution 4.0 Unported"))
204 "http://creativecommons.org/licenses/by/3.0/"
205 "Creative Commons Attribution 3.0 Unported"))
209 "http://creativecommons.org/licenses/by/2.0/"
210 "Creative Commons Attribution 2.0 Generic"))
212 (define cc-sampling-plus-1.0
213 (license "CC-Sampling+ 1.0"
214 "https://creativecommons.org/licenses/sampling+/1.0"
215 "Creative Commons Sampling Plus 1.0"))
219 "http://directory.fsf.org/wiki/License:CDDLv1.0"
220 "https://www.gnu.org/licenses/license-list#CDDL"))
222 ;; CDDL1.1 is the same as 1.0, except that "Sun Microsystems, Inc" becomes "Oracle",
223 ;; "LOST PROFITS" becoms "LOSS OF GOODWILL" and a section is added between 6.2
227 "https://oss.oracle.com/licenses/CDDL+GPL-1.1"
228 "https://www.gnu.org/licenses/license-list#CDDL"))
230 (define cecill ;copyleft
232 "http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.html"
233 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
235 (define cecill-b ;non-copyleft
237 "http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html"
238 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
240 (define cecill-c ;weak copyleft
242 "http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html"
243 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
246 (license "Artistic License 2.0"
247 "http://www.perlfoundation.org/artistic_license_2_0"
248 "http://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
250 (define clarified-artistic
251 (license "Clarified Artistic"
252 ;; http://directory.fsf.org/wiki/User:Jgay/license-categorization#Clarified_Artistic_License
253 "http://gianluca.dellavedova.org/2011/01/03/clarified-artistic-license/"
254 "https://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
256 (define copyleft-next
257 (license "copyleft-next"
258 "https://raw.github.com/richardfontana/copyleft-next/master/Releases/copyleft-next-0.3.0"
259 "GPL-compatible copyleft license"))
263 "http://directory.fsf.org/wiki/License:CPLv1.0"
264 "https://www.gnu.org/licenses/license-list#CommonPublicLicense10"))
268 "http://directory.fsf.org/wiki/License:EDLv1.0"
269 "https://eclipse.org/org/documents/edl-v10.php"))
273 "http://directory.fsf.org/wiki/License:EPLv1.0"
274 "https://www.gnu.org/licenses/license-list#EPL"))
278 "http://directory.fsf.org/wiki/License:Expat"
279 "https://www.gnu.org/licenses/license-list.html#Expat"))
283 "http://directory.fsf.org/wiki/License:Freetype"
284 "https://www.gnu.org/licenses/license-list.html#freetype"))
288 "http://liballeg.org/license.html"
289 "The Allegro 4 license"))
293 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
298 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
303 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
304 "https://www.gnu.org/licenses/license-list#GPLv2"))
308 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
309 "https://www.gnu.org/licenses/license-list#GPLv2"))
313 "https://www.gnu.org/licenses/gpl.html"
314 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
318 "https://www.gnu.org/licenses/gpl.html"
319 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
321 ;; The “GUST font license” is legally equivalent to LPPL v1.3c as it only
322 ;; extends the LPPL with an optional request.
324 (license "GUST font license 1.0"
325 "http://www.gust.org.pl/projects/e-foundry/licenses/GUST-FONT-LICENSE.txt"
326 "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
330 "https://www.gnu.org/licenses/fdl-1.1"
331 "https://www.gnu.org/licenses/license-list#FDL"))
335 "https://www.gnu.org/licenses/fdl-1.2"
336 "https://www.gnu.org/licenses/license-list#FDL"))
340 "https://www.gnu.org/licenses/fdl.html"
341 "https://www.gnu.org/licenses/license-list#FDL"))
344 (license "FreeBSD Documentation License"
345 "https://www.freebsd.org/copyright/freebsd-doc-license.html"
346 "https://www.gnu.org/licenses/license-list.html#FreeBSDDL"))
349 (license "Open Publication License 1.0 or later"
350 "http://opencontent.org/openpub/"
351 "https://www.gnu.org/licenses/license-list#OpenPublicationL"))
355 "http://directory.fsf.org/wiki/License:ISC"
356 "https://www.gnu.org/licenses/license-list.html#ISC"))
360 "http://directory.fsf.org/wiki/License:JPEG"
361 "https://www.gnu.org/licenses/license-list#ijg"))
365 "http://directory.fsf.org/wiki/License:IBMPLv1.0"
366 "https://www.gnu.org/licenses/license-list#IBMPL"))
370 "http://directory.fsf.org/wiki/License:Imlib2"
371 "https://www.gnu.org/licenses/license-list#imlib"))
374 (license "IPA Font License"
375 "http://directory.fsf.org/wiki/License:IPA_Font_License"
376 "https://www.gnu.org/licenses/license-list#IPAFONT"))
379 (license "Donald Knuth's license for TeX"
380 "http://www.ctan.org/license/knuth"
381 "Modification are only permitted under a different name."))
385 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
386 "https://www.gnu.org/licenses/why-not-lgpl.html"))
390 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
391 "https://www.gnu.org/licenses/why-not-lgpl.html"))
395 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
396 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
400 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
401 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
405 "https://www.gnu.org/licenses/lgpl.html"
406 "https://www.gnu.org/licenses/license-list#LGPLv3"))
410 "https://www.gnu.org/licenses/lgpl.html"
411 "https://www.gnu.org/licenses/license-list#LGPLv3"))
414 (license "LPPL (any version)"
415 "https://www.latex-project.org/lppl/lppl-1-0/"
416 "LaTeX Project Public License 1.0"))
420 "https://www.latex-project.org/lppl/lppl-1-0/"
421 "LaTeX Project Public License 1.0"))
425 "http://directory.fsf.org/wiki/License:LPPLv1.2"
426 "https://www.gnu.org/licenses/license-list#LPPL-1.2"))
430 "http://directory.fsf.org/wiki/License:LPPLv1.2"
431 "https://www.gnu.org/licenses/license-list#LPPL-1.2"))
435 "https://www.latex-project.org/lppl/lppl-1-3/"
436 "LaTeX Project Public License 1.3"))
440 "https://www.latex-project.org/lppl/lppl-1-3/"
441 "LaTeX Project Public License 1.3+"))
445 "http://directory.fsf.org/wiki/License:LPPLv1.3a"
446 "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
449 (license "LPPL 1.3a+"
450 "http://directory.fsf.org/wiki/License:LPPLv1.3a"
451 "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
455 "https://www.latex-project.org/lppl/lppl-1-3b/"
456 "LaTeX Project Public License 1.3b"))
459 (license "LPPL 1.3b+"
460 "https://www.latex-project.org/lppl/lppl-1-3b/"
461 "LaTeX Project Public License 1.3b or later"))
465 "https://www.latex-project.org/lppl/lppl-1-3c/"
466 "LaTeX Project Public License 1.3c"))
469 (license "LPPL 1.3c+"
470 "https://www.latex-project.org/lppl/lppl-1-3c/"
471 "LaTeX Project Public License 1.3c or later"))
475 "https://www.mirbsd.org/MirOS-Licence.htm"
480 "http://www.mozilla.org/MPL/1.0/"
481 "https://www.gnu.org/licenses/license-list.html#MPL"))
485 "http://directory.fsf.org/wiki/License:MPLv1.1"
486 "https://www.gnu.org/licenses/license-list#MPL"))
490 "http://directory.fsf.org/wiki/License:MPLv2.0"
491 "https://www.gnu.org/licenses/license-list#MPL-2.0"))
494 (license "Ms-PL" ;Microsoft Public License
495 "http://directory.fsf.org/wiki/License:MsPL"
496 "http://www.gnu.org/licenses/license-list.html#ms-pl"))
499 (license "NCSA/University of Illinois Open Source License"
500 "http://directory.fsf.org/wiki/License:IllinoisNCSA"
501 "https://www.gnu.org/licenses/license-list#NCSA"))
504 (license "Nmap license"
505 "https://svn.nmap.org/nmap/COPYING"
506 "https://fedoraproject.org/wiki/Licensing/Nmap"))
510 "http://directory.fsf.org/wiki/License:OpenSSL"
511 "https://www.gnu.org/licenses/license-list#OpenSSL"))
514 (license "OpenLDAPv2.8"
515 "http://directory.fsf.org/wiki/License:OpenLDAPv2.8"
516 "https://www.gnu.org/licenses/license-list#newOpenLDAP"))
517 ;; lists OpenLDAPv2.7, which is virtually identical
520 ;; The license of Perl, GPLv1+ or Artistic (we ignore the latter here).
521 ;; We define this alias to avoid circular dependencies introduced by the use
522 ;; of the '(package-license perl)' idiom.
526 (license "Python Software Foundation License"
527 "http://docs.python.org/license.html"
530 (define public-domain
531 (license "Public Domain"
532 "http://directory.fsf.org/wiki/License:PublicDomain"
533 "https://www.gnu.org/licenses/license-list#PublicDomain"))
537 "http://directory.fsf.org/wiki/License:QPLv1.0"
538 "http://www.gnu.org/licenses/license-list.html#QPL"))
542 "http://repoze.org/LICENSE.txt"
543 "A BSD-like license with a clause requiring all changes to be
544 attributed by author and date."))
547 (license "Ruby License"
548 "http://directory.fsf.org/wiki/License:Ruby"
549 "https://www.ruby-lang.org/en/about/license.txt"))
552 (license "SGI Free Software License B, version 2.0"
553 "http://directory.fsf.org/wiki/License:SGIFreeBv2"
554 "https://www.gnu.org/licenses/license-list.html#SGIFreeB"))
557 (license "SIL OFL 1.1"
558 "http://scripts.sil.org/OFL_web"
559 "https://www.gnu.org/licenses/license-list#SILOFL"))
563 "http://directory.fsf.org/wiki/License:Sleepycat"
564 "https://www.gnu.org/licenses/license-list#BerkeleyDB"))
568 "http://www.tcl.tk/software/tcltk/license.html"
569 "A non-copyleft free software license from the Tcl/Tk project"))
573 "http://directory.fsf.org/wiki/License:Vim7.2"
574 "http://www.gnu.org/licenses/license-list.html#Vim"))
578 "https://unlicense.org/"
579 "https://www.gnu.org/licenses/license-list.html#Unlicense"))
583 "http://www.wtfpl.net"
584 "http://www.wtfpl.net/about/"))
586 (define wxwindows3.1+
587 (license "wxWindows 3.1+"
588 "https://wxwidgets.org/about/licence"
589 "https://www.gnu.org/licenses/license-list.html#Wxwind"))
593 "http://directory.fsf.org/wiki/License:X11"
594 "https://www.gnu.org/licenses/license-list#X11License"))
596 (define* (x11-style uri #:optional (comment ""))
597 "Return an X11-style license, whose full text can be found at URI,
598 which may be a file:// URI pointing the package's tree."
602 "This is an X11-style, non-copyleft free software license. "
603 "Check the URI for details. "
607 (license "Zope Public License 2.1"
608 "http://directory.fsf.org/wiki?title=License:ZopePLv2.1"
609 "https://www.gnu.org/licenses/license-list.html#Zope2.0"))
613 "http://www.gzip.org/zlib/zlib_license.html"
614 "https://www.gnu.org/licenses/license-list#ZLib"))
616 (define* (fsf-free uri #:optional (comment ""))
617 "Return a license that does not fit any of the ones above or a collection
618 of licenses, approved as free by the FSF. More details can be found at URI."
623 (define* (fsdg-compatible uri #:optional (comment ""))
624 "Return a license that does not fit any of the ones above or a collection
625 of licenses, not necessarily free, but in accordance with FSDG as Non-functional
626 Data. More details can be found at URI. See also
627 https://www.gnu.org/distros/free-system-distribution-guidelines.en.html#non-functional-data."
628 (license "FSDG-compatible"
632 ;;; licenses.scm ends here