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>
15 ;;; This file is part of GNU Guix.
17 ;;; GNU Guix is free software; you can redistribute it and/or modify it
18 ;;; under the terms of the GNU General Public License as published by
19 ;;; the Free Software Foundation; either version 3 of the License, or (at
20 ;;; your option) any later version.
22 ;;; GNU Guix is distributed in the hope that it will be useful, but
23 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
24 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 ;;; GNU General Public License for more details.
27 ;;; You should have received a copy of the GNU General Public License
28 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
30 (define-module (guix licenses)
31 #:use-module (srfi srfi-9)
32 #:export (license? license-name license-uri license-comment
38 bsd-style ;deprecated!
40 cc-by2.0 cc-by3.0 cc-by-sa2.0 cc-by-sa3.0 cc-by-sa4.0
42 cecill cecill-b cecill-c
43 artistic2.0 clarified-artistic
52 gpl1 gpl1+ gpl2 gpl2+ gpl3 gpl3+
54 fdl1.1+ fdl1.2+ fdl1.3+
61 lgpl2.0 lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3 lgpl3+
85 (define-record-type <license>
86 (license name uri comment)
90 (comment license-comment))
94 ;;; Available licenses.
96 ;;; This list is based on these links:
97 ;;; https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix
98 ;;; https://www.gnu.org/licenses/license-list
104 "https://gnu.org/licenses/agpl.html"
105 "https://gnu.org/licenses/why-affero-gpl.html"))
109 "https://gnu.org/licenses/agpl.html"
110 "https://gnu.org/licenses/why-affero-gpl.html"))
114 "https://gnu.org/licenses/agpl.html"
115 "https://gnu.org/licenses/why-affero-gpl.html"))
119 "http://directory.fsf.org/wiki/License:Apache1.1"
120 "https://www.gnu.org/licenses/license-list#apache1"))
124 "http://directory.fsf.org/wiki/License:Apache2.0"
125 "https://www.gnu.org/licenses/license-list#apache2"))
129 "http://directory.fsf.org/wiki/License:Boost1.0"
130 "https://www.gnu.org/licenses/license-list#boost"))
134 "http://directory.fsf.org/wiki/License:FreeBSD"
135 "https://www.gnu.org/licenses/license-list#FreeBSD"))
138 (license "Modified BSD"
139 "http://directory.fsf.org/wiki/License:BSD_3Clause"
140 "https://www.gnu.org/licenses/license-list#ModifiedBSD"))
143 (license "Original BSD"
144 "http://directory.fsf.org/wiki/License:BSD_4Clause"
145 "https://www.gnu.org/licenses/license-list#OriginalBSD"))
147 (define* (non-copyleft uri #:optional (comment ""))
148 "Return a lax, permissive, non-copyleft license (for example a variant of
149 the 3-clause BSD license or the Expat license), whose full text can be found
150 at URI, which may be a file:// URI pointing the package's tree."
151 (license "non-copyleft"
154 "This is a lax, non-copyleft free software license. "
155 "Check the URI for details. "
159 ;; This alias is kept for backward-compatibility. Do not use it for new
160 ;; packages: it is ambiguous, as rightfully explained at
161 ;; <http://www.gnu.org/philosophy/words-to-avoid.html#BSD-style>.
166 "http://directory.fsf.org/wiki/License:CC0"
167 "http://www.gnu.org/licenses/license-list.html#CC0"))
170 (license "CC-BY-SA 4.0"
171 "http://creativecommons.org/licenses/by-sa/4.0/"
172 "Creative Commons Attribution-ShareAlike 4.0 International"))
175 (license "CC-BY-SA 3.0"
176 "http://creativecommons.org/licenses/by-sa/3.0/"
177 "Creative Commons Attribution-ShareAlike 3.0 Unported"))
180 (license "CC-BY-SA 2.0"
181 "http://creativecommons.org/licenses/by-sa/2.0/"
182 "Creative Commons Attribution-ShareAlike 2.0 Generic"))
186 "http://creativecommons.org/licenses/by/3.0/"
187 "Creative Commons Attribution 3.0 Unported"))
191 "http://creativecommons.org/licenses/by/2.0/"
192 "Creative Commons Attribution 2.0 Generic"))
196 "http://directory.fsf.org/wiki/License:CDDLv1.0"
197 "https://www.gnu.org/licenses/license-list#CDDL"))
199 (define cecill ;copyleft
201 "http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.html"
202 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
204 (define cecill-b ;non-copyleft
206 "http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html"
207 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
209 (define cecill-c ;weak copyleft
211 "http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html"
212 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
215 (license "Artistic License 2.0"
216 "http://www.perlfoundation.org/artistic_license_2_0"
217 "http://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
219 (define clarified-artistic
220 (license "Clarified Artistic"
221 ;; http://directory.fsf.org/wiki/User:Jgay/license-categorization#Clarified_Artistic_License
222 "http://gianluca.dellavedova.org/2011/01/03/clarified-artistic-license/"
223 "https://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
225 (define copyleft-next
226 (license "copyleft-next"
227 "https://raw.github.com/richardfontana/copyleft-next/master/Releases/copyleft-next-0.3.0"
228 "GPL-compatible copyleft license"))
232 "http://directory.fsf.org/wiki/License:CPLv1.0"
233 "https://www.gnu.org/licenses/license-list#CommonPublicLicense10"))
237 "http://directory.fsf.org/wiki/License:EDLv1.0"
238 "https://eclipse.org/org/documents/edl-v10.php"))
242 "http://directory.fsf.org/wiki/License:EPLv1.0"
243 "https://www.gnu.org/licenses/license-list#EPL"))
247 "http://directory.fsf.org/wiki/License:Expat"
248 "https://www.gnu.org/licenses/license-list.html#Expat"))
252 "http://directory.fsf.org/wiki/License:Freetype"
253 "https://www.gnu.org/licenses/license-list.html#freetype"))
257 "http://liballeg.org/license.html"
258 "The Allegro 4 license"))
262 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
267 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
272 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
273 "https://www.gnu.org/licenses/license-list#GPLv2"))
277 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
278 "https://www.gnu.org/licenses/license-list#GPLv2"))
282 "https://www.gnu.org/licenses/gpl.html"
283 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
287 "https://www.gnu.org/licenses/gpl.html"
288 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
290 ;; The “GUST font license” is legally equivalent to LPPL v1.3c as it only
291 ;; extends the LPPL with an optional request.
293 (license "GUST font license 1.0"
294 "http://www.gust.org.pl/projects/e-foundry/licenses/GUST-FONT-LICENSE.txt"
295 "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
299 "https://www.gnu.org/licenses/fdl-1.1"
300 "https://www.gnu.org/licenses/license-list#FDL"))
304 "https://www.gnu.org/licenses/fdl-1.2"
305 "https://www.gnu.org/licenses/license-list#FDL"))
309 "https://www.gnu.org/licenses/fdl.html"
310 "https://www.gnu.org/licenses/license-list#FDL"))
313 (license "FreeBSD Documentation License"
314 "https://www.freebsd.org/copyright/freebsd-doc-license.html"
315 "https://www.gnu.org/licenses/license-list.html#FreeBSDDL"))
318 (license "Open Publication License 1.0 or later"
319 "http://opencontent.org/openpub/"
320 "https://www.gnu.org/licenses/license-list#OpenPublicationL"))
324 "http://directory.fsf.org/wiki/License:ISC"
325 "https://www.gnu.org/licenses/license-list.html#ISC"))
329 "http://directory.fsf.org/wiki/License:JPEG"
330 "https://www.gnu.org/licenses/license-list#ijg"))
334 "http://directory.fsf.org/wiki/License:IBMPLv1.0"
335 "https://www.gnu.org/licenses/license-list#IBMPL"))
339 "http://directory.fsf.org/wiki/License:Imlib2"
340 "https://www.gnu.org/licenses/license-list#imlib"))
343 (license "IPA Font License"
344 "http://directory.fsf.org/wiki/License:IPA_Font_License"
345 "https://www.gnu.org/licenses/license-list#IPAFONT"))
349 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
350 "https://www.gnu.org/licenses/why-not-lgpl.html"))
354 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
355 "https://www.gnu.org/licenses/why-not-lgpl.html"))
359 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
360 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
364 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
365 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
369 "https://www.gnu.org/licenses/lgpl.html"
370 "https://www.gnu.org/licenses/license-list#LGPLv3"))
374 "https://www.gnu.org/licenses/lgpl.html"
375 "https://www.gnu.org/licenses/license-list#LGPLv3"))
379 "http://www.mozilla.org/MPL/1.0/"
380 "https://www.gnu.org/licenses/license-list.html#MPL"))
384 "http://directory.fsf.org/wiki/License:MPLv1.1"
385 "https://www.gnu.org/licenses/license-list#MPL"))
389 "http://directory.fsf.org/wiki/License:MPLv2.0"
390 "https://www.gnu.org/licenses/license-list#MPL-2.0"))
393 (license "Ms-PL" ;Microsoft Public License
394 "http://directory.fsf.org/wiki/License:MsPL"
395 "http://www.gnu.org/licenses/license-list.html#ms-pl"))
398 (license "NCSA/University of Illinois Open Source License"
399 "http://directory.fsf.org/wiki/License:IllinoisNCSA"
400 "https://www.gnu.org/licenses/license-list#NCSA"))
403 (license "Nmap license"
404 "https://svn.nmap.org/nmap/COPYING"
405 "https://fedoraproject.org/wiki/Licensing/Nmap"))
409 "http://directory.fsf.org/wiki/License:OpenSSL"
410 "https://www.gnu.org/licenses/license-list#OpenSSL"))
413 (license "OpenLDAPv2.8"
414 "http://directory.fsf.org/wiki/License:OpenLDAPv2.8"
415 "https://www.gnu.org/licenses/license-list#newOpenLDAP"))
416 ;; lists OpenLDAPv2.7, which is virtually identical
419 ;; The license of Perl, GPLv1+ or Artistic (we ignore the latter here).
420 ;; We define this alias to avoid circular dependencies introduced by the use
421 ;; of the '(package-license perl)' idiom.
425 (license "Python Software Foundation License"
426 "http://docs.python.org/license.html"
429 (define public-domain
430 (license "Public Domain"
431 "http://directory.fsf.org/wiki/License:PublicDomain"
432 "https://www.gnu.org/licenses/license-list#PublicDomain"))
436 "http://directory.fsf.org/wiki/License:QPLv1.0"
437 "http://www.gnu.org/licenses/license-list.html#QPL"))
441 "http://repoze.org/LICENSE.txt"
442 "A BSD-like license with a clause requiring all changes to be
443 attributed by author and date."))
446 (license "Ruby License"
447 "http://directory.fsf.org/wiki/License:Ruby"
448 "https://www.ruby-lang.org/en/about/license.txt"))
451 (license "SGI Free Software License B, version 2.0"
452 "http://directory.fsf.org/wiki/License:SGIFreeBv2"
453 "https://www.gnu.org/licenses/license-list.html#SGIFreeB"))
456 (license "SIL OFL 1.1"
457 "http://scripts.sil.org/OFL_web"
458 "https://www.gnu.org/licenses/license-list#SILOFL"))
462 "http://directory.fsf.org/wiki/License:Sleepycat"
463 "https://www.gnu.org/licenses/license-list#BerkeleyDB"))
467 "http://www.tcl.tk/software/tcltk/license.html"
468 "A non-copyleft free software license from the Tcl/Tk project"))
472 "http://directory.fsf.org/wiki/License:Vim7.2"
473 "http://www.gnu.org/licenses/license-list.html#Vim"))
477 "https://unlicense.org/"
478 "https://www.gnu.org/licenses/license-list.html#Unlicense"))
482 "http://www.wtfpl.net"
483 "http://www.wtfpl.net/about/"))
487 "http://directory.fsf.org/wiki/License:X11"
488 "https://www.gnu.org/licenses/license-list#X11License"))
490 (define* (x11-style uri #:optional (comment ""))
491 "Return an X11-style license, whose full text can be found at URI,
492 which may be a file:// URI pointing the package's tree."
496 "This is an X11-style, non-copyleft free software license. "
497 "Check the URI for details. "
501 (license "Zope Public License 2.1"
502 "http://directory.fsf.org/wiki?title=License:ZopePLv2.1"
503 "https://www.gnu.org/licenses/license-list.html#Zope2.0"))
507 "http://www.gzip.org/zlib/zlib_license.html"
508 "https://www.gnu.org/licenses/license-list#ZLib"))
510 (define* (fsf-free uri #:optional (comment ""))
511 "Return a license that does not fit any of the ones above or a collection
512 of licenses, approved as free by the FSF. More details can be found at URI."
517 (define* (fsdg-compatible uri #:optional (comment ""))
518 "Return a license that does not fit any of the ones above or a collection
519 of licenses, not necessarily free, but in accordance with FSDG as Non-functional
520 Data. More details can be found at URI. See also
521 https://www.gnu.org/distros/free-system-distribution-guidelines.en.html#non-functional-data."
522 (license "FSDG-compatible"
526 ;;; licenses.scm ends here