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 Nils Gillmann <ng0@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
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+
99 (define-record-type <license>
100 (license name uri comment)
104 (comment license-comment))
108 ;;; Available licenses.
110 ;;; This list is based on these links:
111 ;;; https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix
112 ;;; https://www.gnu.org/licenses/license-list
118 "https://gnu.org/licenses/agpl.html"
119 "https://gnu.org/licenses/why-affero-gpl.html"))
123 "https://gnu.org/licenses/agpl.html"
124 "https://gnu.org/licenses/why-affero-gpl.html"))
128 "https://gnu.org/licenses/agpl.html"
129 "https://gnu.org/licenses/why-affero-gpl.html"))
133 "http://directory.fsf.org/wiki/License:Apache1.1"
134 "https://www.gnu.org/licenses/license-list#apache1"))
138 "http://directory.fsf.org/wiki/License:Apache2.0"
139 "https://www.gnu.org/licenses/license-list#apache2"))
143 "http://directory.fsf.org/wiki/License:Boost1.0"
144 "https://www.gnu.org/licenses/license-list#boost"))
148 "http://directory.fsf.org/wiki/License:FreeBSD"
149 "https://www.gnu.org/licenses/license-list#FreeBSD"))
152 (license "Modified BSD"
153 "http://directory.fsf.org/wiki/License:BSD_3Clause"
154 "https://www.gnu.org/licenses/license-list#ModifiedBSD"))
157 (license "Original BSD"
158 "http://directory.fsf.org/wiki/License:BSD_4Clause"
159 "https://www.gnu.org/licenses/license-list#OriginalBSD"))
161 (define* (non-copyleft uri #:optional (comment ""))
162 "Return a lax, permissive, non-copyleft license (for example a variant of
163 the 3-clause BSD license or the Expat license), whose full text can be found
164 at URI, which may be a file:// URI pointing the package's tree."
165 (license "non-copyleft"
168 "This is a lax, non-copyleft free software license. "
169 "Check the URI for details. "
173 ;; This alias is kept for backward-compatibility. Do not use it for new
174 ;; packages: it is ambiguous, as rightfully explained at
175 ;; <http://www.gnu.org/philosophy/words-to-avoid.html#BSD-style>.
180 "http://directory.fsf.org/wiki/License:CC0"
181 "http://www.gnu.org/licenses/license-list.html#CC0"))
184 (license "CC-BY-SA 4.0"
185 "http://creativecommons.org/licenses/by-sa/4.0/"
186 "Creative Commons Attribution-ShareAlike 4.0 International"))
189 (license "CC-BY-SA 3.0"
190 "http://creativecommons.org/licenses/by-sa/3.0/"
191 "Creative Commons Attribution-ShareAlike 3.0 Unported"))
194 (license "CC-BY-SA 2.0"
195 "http://creativecommons.org/licenses/by-sa/2.0/"
196 "Creative Commons Attribution-ShareAlike 2.0 Generic"))
200 "http://creativecommons.org/licenses/by/4.0/"
201 "Creative Commons Attribution 4.0 Unported"))
205 "http://creativecommons.org/licenses/by/3.0/"
206 "Creative Commons Attribution 3.0 Unported"))
210 "http://creativecommons.org/licenses/by/2.0/"
211 "Creative Commons Attribution 2.0 Generic"))
213 (define cc-sampling-plus-1.0
214 (license "CC-Sampling+ 1.0"
215 "https://creativecommons.org/licenses/sampling+/1.0"
216 "Creative Commons Sampling Plus 1.0"))
220 "http://directory.fsf.org/wiki/License:CDDLv1.0"
221 "https://www.gnu.org/licenses/license-list#CDDL"))
223 ;; CDDL1.1 is the same as 1.0, except that "Sun Microsystems, Inc" becomes "Oracle",
224 ;; "LOST PROFITS" becoms "LOSS OF GOODWILL" and a section is added between 6.2
228 "https://oss.oracle.com/licenses/CDDL+GPL-1.1"
229 "https://www.gnu.org/licenses/license-list#CDDL"))
231 (define cecill ;copyleft
233 "http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.html"
234 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
236 (define cecill-b ;non-copyleft
238 "http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html"
239 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
241 (define cecill-c ;weak copyleft
243 "http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html"
244 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
247 (license "Artistic License 2.0"
248 "http://www.perlfoundation.org/artistic_license_2_0"
249 "http://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
251 (define clarified-artistic
252 (license "Clarified Artistic"
253 ;; http://directory.fsf.org/wiki/User:Jgay/license-categorization#Clarified_Artistic_License
254 "http://gianluca.dellavedova.org/2011/01/03/clarified-artistic-license/"
255 "https://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
257 (define copyleft-next
258 (license "copyleft-next"
259 "https://raw.github.com/richardfontana/copyleft-next/master/Releases/copyleft-next-0.3.0"
260 "GPL-compatible copyleft license"))
264 "http://directory.fsf.org/wiki/License:CPLv1.0"
265 "https://www.gnu.org/licenses/license-list#CommonPublicLicense10"))
269 "http://directory.fsf.org/wiki/License:EDLv1.0"
270 "https://eclipse.org/org/documents/edl-v10.php"))
274 "http://directory.fsf.org/wiki/License:EPLv1.0"
275 "https://www.gnu.org/licenses/license-list#EPL"))
279 "http://directory.fsf.org/wiki/License:Expat"
280 "https://www.gnu.org/licenses/license-list.html#Expat"))
284 "http://directory.fsf.org/wiki/License:Freetype"
285 "https://www.gnu.org/licenses/license-list.html#freetype"))
289 "http://liballeg.org/license.html"
290 "The Allegro 4 license"))
294 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
299 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
304 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
305 "https://www.gnu.org/licenses/license-list#GPLv2"))
309 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
310 "https://www.gnu.org/licenses/license-list#GPLv2"))
314 "https://www.gnu.org/licenses/gpl.html"
315 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
319 "https://www.gnu.org/licenses/gpl.html"
320 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
322 ;; The “GUST font license” is legally equivalent to LPPL v1.3c as it only
323 ;; extends the LPPL with an optional request.
325 (license "GUST font license 1.0"
326 "http://www.gust.org.pl/projects/e-foundry/licenses/GUST-FONT-LICENSE.txt"
327 "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
331 "https://www.gnu.org/licenses/fdl-1.1"
332 "https://www.gnu.org/licenses/license-list#FDL"))
336 "https://www.gnu.org/licenses/fdl-1.2"
337 "https://www.gnu.org/licenses/license-list#FDL"))
341 "https://www.gnu.org/licenses/fdl.html"
342 "https://www.gnu.org/licenses/license-list#FDL"))
345 (license "FreeBSD Documentation License"
346 "https://www.freebsd.org/copyright/freebsd-doc-license.html"
347 "https://www.gnu.org/licenses/license-list.html#FreeBSDDL"))
350 (license "Open Publication License 1.0 or later"
351 "http://opencontent.org/openpub/"
352 "https://www.gnu.org/licenses/license-list#OpenPublicationL"))
356 "http://directory.fsf.org/wiki/License:ISC"
357 "https://www.gnu.org/licenses/license-list.html#ISC"))
361 "http://directory.fsf.org/wiki/License:JPEG"
362 "https://www.gnu.org/licenses/license-list#ijg"))
366 "http://directory.fsf.org/wiki/License:IBMPLv1.0"
367 "https://www.gnu.org/licenses/license-list#IBMPL"))
371 "http://directory.fsf.org/wiki/License:Imlib2"
372 "https://www.gnu.org/licenses/license-list#imlib"))
375 (license "IPA Font License"
376 "http://directory.fsf.org/wiki/License:IPA_Font_License"
377 "https://www.gnu.org/licenses/license-list#IPAFONT"))
380 (license "Donald Knuth's license for TeX"
381 "http://www.ctan.org/license/knuth"
382 "Modification are only permitted under a different name."))
386 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
387 "https://www.gnu.org/licenses/why-not-lgpl.html"))
391 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
392 "https://www.gnu.org/licenses/why-not-lgpl.html"))
396 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
397 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
401 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
402 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
406 "https://www.gnu.org/licenses/lgpl.html"
407 "https://www.gnu.org/licenses/license-list#LGPLv3"))
411 "https://www.gnu.org/licenses/lgpl.html"
412 "https://www.gnu.org/licenses/license-list#LGPLv3"))
415 (license "LPPL (any version)"
416 "https://www.latex-project.org/lppl/lppl-1-0/"
417 "LaTeX Project Public License 1.0"))
421 "https://www.latex-project.org/lppl/lppl-1-0/"
422 "LaTeX Project Public License 1.0"))
426 "http://directory.fsf.org/wiki/License:LPPLv1.2"
427 "https://www.gnu.org/licenses/license-list#LPPL-1.2"))
431 "http://directory.fsf.org/wiki/License:LPPLv1.2"
432 "https://www.gnu.org/licenses/license-list#LPPL-1.2"))
436 "https://www.latex-project.org/lppl/lppl-1-3/"
437 "LaTeX Project Public License 1.3"))
441 "https://www.latex-project.org/lppl/lppl-1-3/"
442 "LaTeX Project Public License 1.3+"))
446 "http://directory.fsf.org/wiki/License:LPPLv1.3a"
447 "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
450 (license "LPPL 1.3a+"
451 "http://directory.fsf.org/wiki/License:LPPLv1.3a"
452 "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
456 "https://www.latex-project.org/lppl/lppl-1-3b/"
457 "LaTeX Project Public License 1.3b"))
460 (license "LPPL 1.3b+"
461 "https://www.latex-project.org/lppl/lppl-1-3b/"
462 "LaTeX Project Public License 1.3b or later"))
466 "https://www.latex-project.org/lppl/lppl-1-3c/"
467 "LaTeX Project Public License 1.3c"))
470 (license "LPPL 1.3c+"
471 "https://www.latex-project.org/lppl/lppl-1-3c/"
472 "LaTeX Project Public License 1.3c or later"))
476 "https://www.mirbsd.org/MirOS-Licence.htm"
481 "http://www.mozilla.org/MPL/1.0/"
482 "https://www.gnu.org/licenses/license-list.html#MPL"))
486 "http://directory.fsf.org/wiki/License:MPLv1.1"
487 "https://www.gnu.org/licenses/license-list#MPL"))
491 "http://directory.fsf.org/wiki/License:MPLv2.0"
492 "https://www.gnu.org/licenses/license-list#MPL-2.0"))
495 (license "Ms-PL" ;Microsoft Public License
496 "http://directory.fsf.org/wiki/License:MsPL"
497 "http://www.gnu.org/licenses/license-list.html#ms-pl"))
500 (license "NCSA/University of Illinois Open Source License"
501 "http://directory.fsf.org/wiki/License:IllinoisNCSA"
502 "https://www.gnu.org/licenses/license-list#NCSA"))
505 (license "Nmap license"
506 "https://svn.nmap.org/nmap/COPYING"
507 "https://fedoraproject.org/wiki/Licensing/Nmap"))
511 "http://directory.fsf.org/wiki/License:OpenSSL"
512 "https://www.gnu.org/licenses/license-list#OpenSSL"))
515 (license "OpenLDAPv2.8"
516 "http://directory.fsf.org/wiki/License:OpenLDAPv2.8"
517 "https://www.gnu.org/licenses/license-list#newOpenLDAP"))
518 ;; lists OpenLDAPv2.7, which is virtually identical
521 ;; The license of Perl, GPLv1+ or Artistic (we ignore the latter here).
522 ;; We define this alias to avoid circular dependencies introduced by the use
523 ;; of the '(package-license perl)' idiom.
527 (license "Python Software Foundation License"
528 "http://docs.python.org/license.html"
531 (define public-domain
532 (license "Public Domain"
533 "http://directory.fsf.org/wiki/License:PublicDomain"
534 "https://www.gnu.org/licenses/license-list#PublicDomain"))
538 "http://directory.fsf.org/wiki/License:QPLv1.0"
539 "http://www.gnu.org/licenses/license-list.html#QPL"))
543 "http://repoze.org/LICENSE.txt"
544 "A BSD-like license with a clause requiring all changes to be
545 attributed by author and date."))
548 (license "Ruby License"
549 "http://directory.fsf.org/wiki/License:Ruby"
550 "https://www.ruby-lang.org/en/about/license.txt"))
553 (license "SGI Free Software License B, version 2.0"
554 "http://directory.fsf.org/wiki/License:SGIFreeBv2"
555 "https://www.gnu.org/licenses/license-list.html#SGIFreeB"))
558 (license "SIL OFL 1.1"
559 "http://scripts.sil.org/OFL_web"
560 "https://www.gnu.org/licenses/license-list#SILOFL"))
564 "http://directory.fsf.org/wiki/License:Sleepycat"
565 "https://www.gnu.org/licenses/license-list#BerkeleyDB"))
569 "http://www.tcl.tk/software/tcltk/license.html"
570 "A non-copyleft free software license from the Tcl/Tk project"))
574 "http://directory.fsf.org/wiki/License:Vim7.2"
575 "http://www.gnu.org/licenses/license-list.html#Vim"))
579 "https://unlicense.org/"
580 "https://www.gnu.org/licenses/license-list.html#Unlicense"))
583 (license "W3C Software Notice and License"
584 "https://directory.fsf.org/wiki/License:W3C_31Dec2002"
585 "https://www.gnu.org/licenses/license-list.en.html#W3C"))
589 "http://www.wtfpl.net"
590 "http://www.wtfpl.net/about/"))
592 (define wxwindows3.1+
593 (license "wxWindows 3.1+"
594 "https://wxwidgets.org/about/licence"
595 "https://www.gnu.org/licenses/license-list.html#Wxwind"))
599 "http://directory.fsf.org/wiki/License:X11"
600 "https://www.gnu.org/licenses/license-list#X11License"))
602 (define* (x11-style uri #:optional (comment ""))
603 "Return an X11-style license, whose full text can be found at URI,
604 which may be a file:// URI pointing the package's tree."
608 "This is an X11-style, non-copyleft free software license. "
609 "Check the URI for details. "
613 (license "Zope Public License 2.1"
614 "http://directory.fsf.org/wiki?title=License:ZopePLv2.1"
615 "https://www.gnu.org/licenses/license-list.html#Zope2.0"))
619 "http://www.gzip.org/zlib/zlib_license.html"
620 "https://www.gnu.org/licenses/license-list#ZLib"))
622 (define* (fsf-free uri #:optional (comment ""))
623 "Return a license that does not fit any of the ones above or a collection
624 of licenses, approved as free by the FSF. More details can be found at URI."
629 (define* (fsdg-compatible uri #:optional (comment ""))
630 "Return a license that does not fit any of the ones above or a collection
631 of licenses, not necessarily free, but in accordance with FSDG as Non-functional
632 Data. More details can be found at URI. See also
633 https://www.gnu.org/distros/free-system-distribution-guidelines.en.html#non-functional-data."
634 (license "FSDG-compatible"
638 ;;; licenses.scm ends here