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>
17 ;;; This file is part of GNU Guix.
19 ;;; GNU Guix is free software; you can redistribute it and/or modify it
20 ;;; under the terms of the GNU General Public License as published by
21 ;;; the Free Software Foundation; either version 3 of the License, or (at
22 ;;; your option) any later version.
24 ;;; GNU Guix is distributed in the hope that it will be useful, but
25 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
26 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 ;;; GNU General Public License for more details.
29 ;;; You should have received a copy of the GNU General Public License
30 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
32 (define-module (guix licenses)
33 #:use-module (srfi srfi-9)
34 #:export (license? license-name license-uri license-comment
40 bsd-style ;deprecated!
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
56 gpl1 gpl1+ gpl2 gpl2+ gpl3 gpl3+
58 fdl1.1+ fdl1.2+ fdl1.3+
66 lgpl2.0 lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3 lgpl3+
67 lppl lppl1.0+ lppl1.2 lppl1.2+
96 (define-record-type <license>
97 (license name uri comment)
101 (comment license-comment))
105 ;;; Available licenses.
107 ;;; This list is based on these links:
108 ;;; https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix
109 ;;; https://www.gnu.org/licenses/license-list
115 "https://gnu.org/licenses/agpl.html"
116 "https://gnu.org/licenses/why-affero-gpl.html"))
120 "https://gnu.org/licenses/agpl.html"
121 "https://gnu.org/licenses/why-affero-gpl.html"))
125 "https://gnu.org/licenses/agpl.html"
126 "https://gnu.org/licenses/why-affero-gpl.html"))
130 "http://directory.fsf.org/wiki/License:Apache1.1"
131 "https://www.gnu.org/licenses/license-list#apache1"))
135 "http://directory.fsf.org/wiki/License:Apache2.0"
136 "https://www.gnu.org/licenses/license-list#apache2"))
140 "http://directory.fsf.org/wiki/License:Boost1.0"
141 "https://www.gnu.org/licenses/license-list#boost"))
145 "http://directory.fsf.org/wiki/License:FreeBSD"
146 "https://www.gnu.org/licenses/license-list#FreeBSD"))
149 (license "Modified BSD"
150 "http://directory.fsf.org/wiki/License:BSD_3Clause"
151 "https://www.gnu.org/licenses/license-list#ModifiedBSD"))
154 (license "Original BSD"
155 "http://directory.fsf.org/wiki/License:BSD_4Clause"
156 "https://www.gnu.org/licenses/license-list#OriginalBSD"))
158 (define* (non-copyleft uri #:optional (comment ""))
159 "Return a lax, permissive, non-copyleft license (for example a variant of
160 the 3-clause BSD license or the Expat license), whose full text can be found
161 at URI, which may be a file:// URI pointing the package's tree."
162 (license "non-copyleft"
165 "This is a lax, non-copyleft free software license. "
166 "Check the URI for details. "
170 ;; This alias is kept for backward-compatibility. Do not use it for new
171 ;; packages: it is ambiguous, as rightfully explained at
172 ;; <http://www.gnu.org/philosophy/words-to-avoid.html#BSD-style>.
177 "http://directory.fsf.org/wiki/License:CC0"
178 "http://www.gnu.org/licenses/license-list.html#CC0"))
181 (license "CC-BY-SA 4.0"
182 "http://creativecommons.org/licenses/by-sa/4.0/"
183 "Creative Commons Attribution-ShareAlike 4.0 International"))
186 (license "CC-BY-SA 3.0"
187 "http://creativecommons.org/licenses/by-sa/3.0/"
188 "Creative Commons Attribution-ShareAlike 3.0 Unported"))
191 (license "CC-BY-SA 2.0"
192 "http://creativecommons.org/licenses/by-sa/2.0/"
193 "Creative Commons Attribution-ShareAlike 2.0 Generic"))
197 "http://creativecommons.org/licenses/by/4.0/"
198 "Creative Commons Attribution 4.0 Unported"))
202 "http://creativecommons.org/licenses/by/3.0/"
203 "Creative Commons Attribution 3.0 Unported"))
207 "http://creativecommons.org/licenses/by/2.0/"
208 "Creative Commons Attribution 2.0 Generic"))
210 (define cc-sampling-plus-1.0
211 (license "CC-Sampling+ 1.0"
212 "https://creativecommons.org/licenses/sampling+/1.0"
213 "Creative Commons Sampling Plus 1.0"))
217 "http://directory.fsf.org/wiki/License:CDDLv1.0"
218 "https://www.gnu.org/licenses/license-list#CDDL"))
220 ;; CDDL1.1 is the same as 1.0, except that "Sun Microsystems, Inc" becomes "Oracle",
221 ;; "LOST PROFITS" becoms "LOSS OF GOODWILL" and a section is added between 6.2
225 "https://oss.oracle.com/licenses/CDDL+GPL-1.1"
226 "https://www.gnu.org/licenses/license-list#CDDL"))
228 (define cecill ;copyleft
230 "http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.html"
231 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
233 (define cecill-b ;non-copyleft
235 "http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html"
236 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
238 (define cecill-c ;weak copyleft
240 "http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html"
241 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
244 (license "Artistic License 2.0"
245 "http://www.perlfoundation.org/artistic_license_2_0"
246 "http://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
248 (define clarified-artistic
249 (license "Clarified Artistic"
250 ;; http://directory.fsf.org/wiki/User:Jgay/license-categorization#Clarified_Artistic_License
251 "http://gianluca.dellavedova.org/2011/01/03/clarified-artistic-license/"
252 "https://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
254 (define copyleft-next
255 (license "copyleft-next"
256 "https://raw.github.com/richardfontana/copyleft-next/master/Releases/copyleft-next-0.3.0"
257 "GPL-compatible copyleft license"))
261 "http://directory.fsf.org/wiki/License:CPLv1.0"
262 "https://www.gnu.org/licenses/license-list#CommonPublicLicense10"))
266 "http://directory.fsf.org/wiki/License:EDLv1.0"
267 "https://eclipse.org/org/documents/edl-v10.php"))
271 "http://directory.fsf.org/wiki/License:EPLv1.0"
272 "https://www.gnu.org/licenses/license-list#EPL"))
276 "http://directory.fsf.org/wiki/License:Expat"
277 "https://www.gnu.org/licenses/license-list.html#Expat"))
281 "http://directory.fsf.org/wiki/License:Freetype"
282 "https://www.gnu.org/licenses/license-list.html#freetype"))
286 "http://liballeg.org/license.html"
287 "The Allegro 4 license"))
291 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
296 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
301 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
302 "https://www.gnu.org/licenses/license-list#GPLv2"))
306 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
307 "https://www.gnu.org/licenses/license-list#GPLv2"))
311 "https://www.gnu.org/licenses/gpl.html"
312 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
316 "https://www.gnu.org/licenses/gpl.html"
317 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
319 ;; The “GUST font license” is legally equivalent to LPPL v1.3c as it only
320 ;; extends the LPPL with an optional request.
322 (license "GUST font license 1.0"
323 "http://www.gust.org.pl/projects/e-foundry/licenses/GUST-FONT-LICENSE.txt"
324 "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
328 "https://www.gnu.org/licenses/fdl-1.1"
329 "https://www.gnu.org/licenses/license-list#FDL"))
333 "https://www.gnu.org/licenses/fdl-1.2"
334 "https://www.gnu.org/licenses/license-list#FDL"))
338 "https://www.gnu.org/licenses/fdl.html"
339 "https://www.gnu.org/licenses/license-list#FDL"))
342 (license "FreeBSD Documentation License"
343 "https://www.freebsd.org/copyright/freebsd-doc-license.html"
344 "https://www.gnu.org/licenses/license-list.html#FreeBSDDL"))
347 (license "Open Publication License 1.0 or later"
348 "http://opencontent.org/openpub/"
349 "https://www.gnu.org/licenses/license-list#OpenPublicationL"))
353 "http://directory.fsf.org/wiki/License:ISC"
354 "https://www.gnu.org/licenses/license-list.html#ISC"))
358 "http://directory.fsf.org/wiki/License:JPEG"
359 "https://www.gnu.org/licenses/license-list#ijg"))
363 "http://directory.fsf.org/wiki/License:IBMPLv1.0"
364 "https://www.gnu.org/licenses/license-list#IBMPL"))
368 "http://directory.fsf.org/wiki/License:Imlib2"
369 "https://www.gnu.org/licenses/license-list#imlib"))
372 (license "IPA Font License"
373 "http://directory.fsf.org/wiki/License:IPA_Font_License"
374 "https://www.gnu.org/licenses/license-list#IPAFONT"))
377 (license "Donald Knuth's license for TeX"
378 "http://www.ctan.org/license/knuth"
379 "Modification are only permitted under a different name."))
383 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
384 "https://www.gnu.org/licenses/why-not-lgpl.html"))
388 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
389 "https://www.gnu.org/licenses/why-not-lgpl.html"))
393 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
394 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
398 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
399 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
403 "https://www.gnu.org/licenses/lgpl.html"
404 "https://www.gnu.org/licenses/license-list#LGPLv3"))
408 "https://www.gnu.org/licenses/lgpl.html"
409 "https://www.gnu.org/licenses/license-list#LGPLv3"))
412 (license "LPPL (any version)"
413 "https://www.latex-project.org/lppl/lppl-1-0/"
414 "LaTeX Project Public License 1.0"))
418 "https://www.latex-project.org/lppl/lppl-1-0/"
419 "LaTeX Project Public License 1.0"))
423 "http://directory.fsf.org/wiki/License:LPPLv1.2"
424 "https://www.gnu.org/licenses/license-list#LPPL-1.2"))
428 "http://directory.fsf.org/wiki/License:LPPLv1.2"
429 "https://www.gnu.org/licenses/license-list#LPPL-1.2"))
433 "https://www.latex-project.org/lppl/lppl-1-3/"
434 "LaTeX Project Public License 1.3"))
438 "https://www.latex-project.org/lppl/lppl-1-3/"
439 "LaTeX Project Public License 1.3+"))
443 "http://directory.fsf.org/wiki/License:LPPLv1.3a"
444 "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
447 (license "LPPL 1.3a+"
448 "http://directory.fsf.org/wiki/License:LPPLv1.3a"
449 "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
453 "https://www.latex-project.org/lppl/lppl-1-3b/"
454 "LaTeX Project Public License 1.3b"))
457 (license "LPPL 1.3b+"
458 "https://www.latex-project.org/lppl/lppl-1-3b/"
459 "LaTeX Project Public License 1.3b or later"))
463 "https://www.latex-project.org/lppl/lppl-1-3c/"
464 "LaTeX Project Public License 1.3c"))
467 (license "LPPL 1.3c+"
468 "https://www.latex-project.org/lppl/lppl-1-3c/"
469 "LaTeX Project Public License 1.3c or later"))
473 "https://www.mirbsd.org/MirOS-Licence.htm"
478 "http://www.mozilla.org/MPL/1.0/"
479 "https://www.gnu.org/licenses/license-list.html#MPL"))
483 "http://directory.fsf.org/wiki/License:MPLv1.1"
484 "https://www.gnu.org/licenses/license-list#MPL"))
488 "http://directory.fsf.org/wiki/License:MPLv2.0"
489 "https://www.gnu.org/licenses/license-list#MPL-2.0"))
492 (license "Ms-PL" ;Microsoft Public License
493 "http://directory.fsf.org/wiki/License:MsPL"
494 "http://www.gnu.org/licenses/license-list.html#ms-pl"))
497 (license "NCSA/University of Illinois Open Source License"
498 "http://directory.fsf.org/wiki/License:IllinoisNCSA"
499 "https://www.gnu.org/licenses/license-list#NCSA"))
502 (license "Nmap license"
503 "https://svn.nmap.org/nmap/COPYING"
504 "https://fedoraproject.org/wiki/Licensing/Nmap"))
508 "http://directory.fsf.org/wiki/License:OpenSSL"
509 "https://www.gnu.org/licenses/license-list#OpenSSL"))
512 (license "OpenLDAPv2.8"
513 "http://directory.fsf.org/wiki/License:OpenLDAPv2.8"
514 "https://www.gnu.org/licenses/license-list#newOpenLDAP"))
515 ;; lists OpenLDAPv2.7, which is virtually identical
518 ;; The license of Perl, GPLv1+ or Artistic (we ignore the latter here).
519 ;; We define this alias to avoid circular dependencies introduced by the use
520 ;; of the '(package-license perl)' idiom.
524 (license "Python Software Foundation License"
525 "http://docs.python.org/license.html"
528 (define public-domain
529 (license "Public Domain"
530 "http://directory.fsf.org/wiki/License:PublicDomain"
531 "https://www.gnu.org/licenses/license-list#PublicDomain"))
535 "http://directory.fsf.org/wiki/License:QPLv1.0"
536 "http://www.gnu.org/licenses/license-list.html#QPL"))
540 "http://repoze.org/LICENSE.txt"
541 "A BSD-like license with a clause requiring all changes to be
542 attributed by author and date."))
545 (license "Ruby License"
546 "http://directory.fsf.org/wiki/License:Ruby"
547 "https://www.ruby-lang.org/en/about/license.txt"))
550 (license "SGI Free Software License B, version 2.0"
551 "http://directory.fsf.org/wiki/License:SGIFreeBv2"
552 "https://www.gnu.org/licenses/license-list.html#SGIFreeB"))
555 (license "SIL OFL 1.1"
556 "http://scripts.sil.org/OFL_web"
557 "https://www.gnu.org/licenses/license-list#SILOFL"))
561 "http://directory.fsf.org/wiki/License:Sleepycat"
562 "https://www.gnu.org/licenses/license-list#BerkeleyDB"))
566 "http://www.tcl.tk/software/tcltk/license.html"
567 "A non-copyleft free software license from the Tcl/Tk project"))
571 "http://directory.fsf.org/wiki/License:Vim7.2"
572 "http://www.gnu.org/licenses/license-list.html#Vim"))
576 "https://unlicense.org/"
577 "https://www.gnu.org/licenses/license-list.html#Unlicense"))
581 "http://www.wtfpl.net"
582 "http://www.wtfpl.net/about/"))
586 "http://directory.fsf.org/wiki/License:X11"
587 "https://www.gnu.org/licenses/license-list#X11License"))
589 (define* (x11-style uri #:optional (comment ""))
590 "Return an X11-style license, whose full text can be found at URI,
591 which may be a file:// URI pointing the package's tree."
595 "This is an X11-style, non-copyleft free software license. "
596 "Check the URI for details. "
600 (license "Zope Public License 2.1"
601 "http://directory.fsf.org/wiki?title=License:ZopePLv2.1"
602 "https://www.gnu.org/licenses/license-list.html#Zope2.0"))
606 "http://www.gzip.org/zlib/zlib_license.html"
607 "https://www.gnu.org/licenses/license-list#ZLib"))
609 (define* (fsf-free uri #:optional (comment ""))
610 "Return a license that does not fit any of the ones above or a collection
611 of licenses, approved as free by the FSF. More details can be found at URI."
616 (define* (fsdg-compatible uri #:optional (comment ""))
617 "Return a license that does not fit any of the ones above or a collection
618 of licenses, not necessarily free, but in accordance with FSDG as Non-functional
619 Data. More details can be found at URI. See also
620 https://www.gnu.org/distros/free-system-distribution-guidelines.en.html#non-functional-data."
621 (license "FSDG-compatible"
625 ;;; licenses.scm ends here