1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2014, 2015, 2017, 2019 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 ng0 <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
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+
100 (define-record-type <license>
101 (license name uri comment)
105 (comment license-comment))
109 ;;; Available licenses.
111 ;;; This list is based on these links:
112 ;;; https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix
113 ;;; https://www.gnu.org/licenses/license-list
119 "https://gnu.org/licenses/agpl.html"
120 "https://gnu.org/licenses/why-affero-gpl.html"))
124 "https://gnu.org/licenses/agpl.html"
125 "https://gnu.org/licenses/why-affero-gpl.html"))
129 "https://gnu.org/licenses/agpl.html"
130 "https://gnu.org/licenses/why-affero-gpl.html"))
134 "http://directory.fsf.org/wiki/License:Apache1.1"
135 "https://www.gnu.org/licenses/license-list#apache1"))
139 "http://directory.fsf.org/wiki/License:Apache2.0"
140 "https://www.gnu.org/licenses/license-list#apache2"))
144 "http://directory.fsf.org/wiki/License:Boost1.0"
145 "https://www.gnu.org/licenses/license-list#boost"))
149 "http://directory.fsf.org/wiki/License:FreeBSD"
150 "https://www.gnu.org/licenses/license-list#FreeBSD"))
153 (license "Modified BSD"
154 "http://directory.fsf.org/wiki/License:BSD_3Clause"
155 "https://www.gnu.org/licenses/license-list#ModifiedBSD"))
158 (license "Original BSD"
159 "http://directory.fsf.org/wiki/License:BSD_4Clause"
160 "https://www.gnu.org/licenses/license-list#OriginalBSD"))
162 (define* (non-copyleft uri #:optional (comment ""))
163 "Return a lax, permissive, non-copyleft license (for example a variant of
164 the 3-clause BSD license or the Expat license), whose full text can be found
165 at URI, which may be a file:// URI pointing the package's tree."
166 (license "non-copyleft"
169 "This is a lax, non-copyleft free software license. "
170 "Check the URI for details. "
175 "http://directory.fsf.org/wiki/License:CC0"
176 "http://www.gnu.org/licenses/license-list.html#CC0"))
179 (license "CC-BY-SA 4.0"
180 "http://creativecommons.org/licenses/by-sa/4.0/"
181 "Creative Commons Attribution-ShareAlike 4.0 International"))
184 (license "CC-BY-SA 3.0"
185 "http://creativecommons.org/licenses/by-sa/3.0/"
186 "Creative Commons Attribution-ShareAlike 3.0 Unported"))
189 (license "CC-BY-SA 2.0"
190 "http://creativecommons.org/licenses/by-sa/2.0/"
191 "Creative Commons Attribution-ShareAlike 2.0 Generic"))
195 "http://creativecommons.org/licenses/by/4.0/"
196 "Creative Commons Attribution 4.0 Unported"))
200 "http://creativecommons.org/licenses/by/3.0/"
201 "Creative Commons Attribution 3.0 Unported"))
205 "http://creativecommons.org/licenses/by/2.0/"
206 "Creative Commons Attribution 2.0 Generic"))
208 (define cc-sampling-plus-1.0
209 (license "CC-Sampling+ 1.0"
210 "https://creativecommons.org/licenses/sampling+/1.0"
211 "Creative Commons Sampling Plus 1.0"))
215 "http://directory.fsf.org/wiki/License:CDDLv1.0"
216 "https://www.gnu.org/licenses/license-list#CDDL"))
218 ;; CDDL1.1 is the same as 1.0, except that "Sun Microsystems, Inc" becomes "Oracle",
219 ;; "LOST PROFITS" becoms "LOSS OF GOODWILL" and a section is added between 6.2
223 "https://oss.oracle.com/licenses/CDDL+GPL-1.1"
224 "https://www.gnu.org/licenses/license-list#CDDL"))
226 (define cecill ;copyleft
228 "http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.html"
229 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
231 (define cecill-b ;non-copyleft
233 "http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html"
234 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
236 (define cecill-c ;weak copyleft
238 "http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html"
239 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
242 (license "Artistic License 2.0"
243 "http://www.perlfoundation.org/artistic_license_2_0"
244 "http://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
246 (define clarified-artistic
247 (license "Clarified Artistic"
248 ;; http://directory.fsf.org/wiki/User:Jgay/license-categorization#Clarified_Artistic_License
249 "http://gianluca.dellavedova.org/2011/01/03/clarified-artistic-license/"
250 "https://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
252 (define copyleft-next
253 (license "copyleft-next"
254 "https://raw.github.com/richardfontana/copyleft-next/master/Releases/copyleft-next-0.3.0"
255 "GPL-compatible copyleft license"))
259 "http://directory.fsf.org/wiki/License:CPLv1.0"
260 "https://www.gnu.org/licenses/license-list#CommonPublicLicense10"))
264 "http://directory.fsf.org/wiki/License:EDLv1.0"
265 "https://eclipse.org/org/documents/edl-v10.php"))
269 "http://directory.fsf.org/wiki/License:EPLv1.0"
270 "https://www.gnu.org/licenses/license-list#EPL"))
274 "https://www.eclipse.org/legal/epl-2.0/"
275 "https://www.gnu.org/licenses/license-list#EPL2"))
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"))
416 "https://opensource.franz.com/preamble.html"
417 "Lisp Lesser General Public License"))
420 (license "LPPL (any version)"
421 "https://www.latex-project.org/lppl/lppl-1-0/"
422 "LaTeX Project Public License 1.0"))
426 "https://www.latex-project.org/lppl/lppl-1-0/"
427 "LaTeX Project Public License 1.0"))
431 "https://www.latex-project.org/lppl/lppl-1-1/"
432 "LaTeX Project Public License 1.1"))
436 "http://directory.fsf.org/wiki/License:LPPLv1.2"
437 "https://www.gnu.org/licenses/license-list#LPPL-1.2"))
441 "http://directory.fsf.org/wiki/License:LPPLv1.2"
442 "https://www.gnu.org/licenses/license-list#LPPL-1.2"))
446 "https://www.latex-project.org/lppl/lppl-1-3/"
447 "LaTeX Project Public License 1.3"))
451 "https://www.latex-project.org/lppl/lppl-1-3/"
452 "LaTeX Project Public License 1.3+"))
456 "http://directory.fsf.org/wiki/License:LPPLv1.3a"
457 "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
460 (license "LPPL 1.3a+"
461 "http://directory.fsf.org/wiki/License:LPPLv1.3a"
462 "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
466 "https://www.latex-project.org/lppl/lppl-1-3b/"
467 "LaTeX Project Public License 1.3b"))
470 (license "LPPL 1.3b+"
471 "https://www.latex-project.org/lppl/lppl-1-3b/"
472 "LaTeX Project Public License 1.3b or later"))
476 "https://www.latex-project.org/lppl/lppl-1-3c/"
477 "LaTeX Project Public License 1.3c"))
480 (license "LPPL 1.3c+"
481 "https://www.latex-project.org/lppl/lppl-1-3c/"
482 "LaTeX Project Public License 1.3c or later"))
486 "https://www.mirbsd.org/MirOS-Licence.htm"
491 "http://www.mozilla.org/MPL/1.0/"
492 "https://www.gnu.org/licenses/license-list.html#MPL"))
496 "http://directory.fsf.org/wiki/License:MPLv1.1"
497 "https://www.gnu.org/licenses/license-list#MPL"))
501 "http://directory.fsf.org/wiki/License:MPLv2.0"
502 "https://www.gnu.org/licenses/license-list#MPL-2.0"))
505 (license "Ms-PL" ;Microsoft Public License
506 "http://directory.fsf.org/wiki/License:MsPL"
507 "http://www.gnu.org/licenses/license-list.html#ms-pl"))
510 (license "NCSA/University of Illinois Open Source License"
511 "http://directory.fsf.org/wiki/License:IllinoisNCSA"
512 "https://www.gnu.org/licenses/license-list#NCSA"))
515 (license "Nmap license"
516 "https://svn.nmap.org/nmap/COPYING"
517 "https://fedoraproject.org/wiki/Licensing/Nmap"))
521 "http://directory.fsf.org/wiki/License:OpenSSL"
522 "https://www.gnu.org/licenses/license-list#OpenSSL"))
525 (license "OpenLDAPv2.8"
526 "http://directory.fsf.org/wiki/License:OpenLDAPv2.8"
527 "https://www.gnu.org/licenses/license-list#newOpenLDAP"))
528 ;; lists OpenLDAPv2.7, which is virtually identical
531 ;; The license of Perl, GPLv1+ or Artistic (we ignore the latter here).
532 ;; We define this alias to avoid circular dependencies introduced by the use
533 ;; of the '(package-license perl)' idiom.
537 (license "Python Software Foundation License"
538 "http://docs.python.org/license.html"
541 (define public-domain
542 (license "Public Domain"
543 "http://directory.fsf.org/wiki/License:PublicDomain"
544 "https://www.gnu.org/licenses/license-list#PublicDomain"))
548 "http://directory.fsf.org/wiki/License:QPLv1.0"
549 "http://www.gnu.org/licenses/license-list.html#QPL"))
553 "http://repoze.org/LICENSE.txt"
554 "A BSD-like license with a clause requiring all changes to be
555 attributed by author and date."))
558 (license "Ruby License"
559 "http://directory.fsf.org/wiki/License:Ruby"
560 "https://www.ruby-lang.org/en/about/license.txt"))
563 (license "SGI Free Software License B, version 2.0"
564 "http://directory.fsf.org/wiki/License:SGIFreeBv2"
565 "https://www.gnu.org/licenses/license-list.html#SGIFreeB"))
568 (license "SIL OFL 1.1"
569 "http://scripts.sil.org/OFL_web"
570 "https://www.gnu.org/licenses/license-list#SILOFL"))
574 "http://directory.fsf.org/wiki/License:Sleepycat"
575 "https://www.gnu.org/licenses/license-list#BerkeleyDB"))
579 "http://www.tcl.tk/software/tcltk/license.html"
580 "A non-copyleft free software license from the Tcl/Tk project"))
584 "http://directory.fsf.org/wiki/License:Vim7.2"
585 "http://www.gnu.org/licenses/license-list.html#Vim"))
589 "https://unlicense.org/"
590 "https://www.gnu.org/licenses/license-list.html#Unlicense"))
593 (license "W3C Software Notice and License"
594 "https://directory.fsf.org/wiki/License:W3C_31Dec2002"
595 "https://www.gnu.org/licenses/license-list.en.html#W3C"))
599 "http://www.wtfpl.net"
600 "http://www.wtfpl.net/about/"))
602 (define wxwindows3.1+
603 (license "wxWindows 3.1+"
604 "https://wxwidgets.org/about/licence"
605 "https://www.gnu.org/licenses/license-list.html#Wxwind"))
609 "http://directory.fsf.org/wiki/License:X11"
610 "https://www.gnu.org/licenses/license-list#X11License"))
612 (define* (x11-style uri #:optional (comment ""))
613 "Return an X11-style license, whose full text can be found at URI,
614 which may be a file:// URI pointing the package's tree."
618 "This is an X11-style, non-copyleft free software license. "
619 "Check the URI for details. "
623 (license "Zope Public License 2.1"
624 "http://directory.fsf.org/wiki?title=License:ZopePLv2.1"
625 "https://www.gnu.org/licenses/license-list.html#Zope2.0"))
629 "http://www.gzip.org/zlib/zlib_license.html"
630 "https://www.gnu.org/licenses/license-list#ZLib"))
634 "https://directory.fsf.org/wiki/License:HPND"
635 "https://www.gnu.org/licenses/license-list#HPND"))
637 (define* (fsf-free uri #:optional (comment ""))
638 "Return a license that does not fit any of the ones above or a collection
639 of licenses, approved as free by the FSF. More details can be found at URI."
644 (define* (fsdg-compatible uri #:optional (comment ""))
645 "Return a license that does not fit any of the ones above or a collection
646 of licenses, not necessarily free, but in accordance with FSDG as Non-functional
647 Data. More details can be found at URI. See also
648 https://www.gnu.org/distros/free-system-distribution-guidelines.en.html#non-functional-data."
649 (license "FSDG-compatible"
653 ;;; licenses.scm ends here