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
51 gpl1 gpl1+ gpl2 gpl2+ gpl3 gpl3+
53 fdl1.1+ fdl1.2+ fdl1.3+
60 lgpl2.0 lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3 lgpl3+
84 (define-record-type <license>
85 (license name uri comment)
89 (comment license-comment))
93 ;;; Available licenses.
95 ;;; This list is based on these links:
96 ;;; https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix
97 ;;; https://www.gnu.org/licenses/license-list
103 "https://gnu.org/licenses/agpl.html"
104 "https://gnu.org/licenses/why-affero-gpl.html"))
108 "https://gnu.org/licenses/agpl.html"
109 "https://gnu.org/licenses/why-affero-gpl.html"))
113 "https://gnu.org/licenses/agpl.html"
114 "https://gnu.org/licenses/why-affero-gpl.html"))
118 "http://directory.fsf.org/wiki/License:Apache1.1"
119 "https://www.gnu.org/licenses/license-list#apache1"))
123 "http://directory.fsf.org/wiki/License:Apache2.0"
124 "https://www.gnu.org/licenses/license-list#apache2"))
128 "http://directory.fsf.org/wiki/License:Boost1.0"
129 "https://www.gnu.org/licenses/license-list#boost"))
133 "http://directory.fsf.org/wiki/License:FreeBSD"
134 "https://www.gnu.org/licenses/license-list#FreeBSD"))
137 (license "Modified BSD"
138 "http://directory.fsf.org/wiki/License:BSD_3Clause"
139 "https://www.gnu.org/licenses/license-list#ModifiedBSD"))
142 (license "Original BSD"
143 "http://directory.fsf.org/wiki/License:BSD_4Clause"
144 "https://www.gnu.org/licenses/license-list#OriginalBSD"))
146 (define* (non-copyleft uri #:optional (comment ""))
147 "Return a lax, permissive, non-copyleft license (for example a variant of
148 the 3-clause BSD license or the Expat license), whose full text can be found
149 at URI, which may be a file:// URI pointing the package's tree."
150 (license "non-copyleft"
153 "This is a lax, non-copyleft free software license. "
154 "Check the URI for details. "
158 ;; This alias is kept for backward-compatibility. Do not use it for new
159 ;; packages: it is ambiguous, as rightfully explained at
160 ;; <http://www.gnu.org/philosophy/words-to-avoid.html#BSD-style>.
165 "http://directory.fsf.org/wiki/License:CC0"
166 "http://www.gnu.org/licenses/license-list.html#CC0"))
169 (license "CC-BY-SA 4.0"
170 "http://creativecommons.org/licenses/by-sa/4.0/"
171 "Creative Commons Attribution-ShareAlike 4.0 International"))
174 (license "CC-BY-SA 3.0"
175 "http://creativecommons.org/licenses/by-sa/3.0/"
176 "Creative Commons Attribution-ShareAlike 3.0 Unported"))
179 (license "CC-BY-SA 2.0"
180 "http://creativecommons.org/licenses/by-sa/2.0/"
181 "Creative Commons Attribution-ShareAlike 2.0 Generic"))
185 "http://creativecommons.org/licenses/by/3.0/"
186 "Creative Commons Attribution 3.0 Unported"))
190 "http://creativecommons.org/licenses/by/2.0/"
191 "Creative Commons Attribution 2.0 Generic"))
195 "http://directory.fsf.org/wiki/License:CDDLv1.0"
196 "https://www.gnu.org/licenses/license-list#CDDL"))
198 (define cecill ;copyleft
200 "http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.html"
201 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
203 (define cecill-b ;non-copyleft
205 "http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html"
206 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
208 (define cecill-c ;weak copyleft
210 "http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html"
211 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
214 (license "Artistic License 2.0"
215 "http://www.perlfoundation.org/artistic_license_2_0"
216 "http://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
218 (define clarified-artistic
219 (license "Clarified Artistic"
220 ;; http://directory.fsf.org/wiki/User:Jgay/license-categorization#Clarified_Artistic_License
221 "http://gianluca.dellavedova.org/2011/01/03/clarified-artistic-license/"
222 "https://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
224 (define copyleft-next
225 (license "copyleft-next"
226 "https://raw.github.com/richardfontana/copyleft-next/master/Releases/copyleft-next-0.3.0"
227 "GPL-compatible copyleft license"))
231 "http://directory.fsf.org/wiki/License:CPLv1.0"
232 "https://www.gnu.org/licenses/license-list#CommonPublicLicense10"))
236 "http://directory.fsf.org/wiki/License:EPLv1.0"
237 "https://www.gnu.org/licenses/license-list#EPL"))
241 "http://directory.fsf.org/wiki/License:Expat"
242 "https://www.gnu.org/licenses/license-list.html#Expat"))
246 "http://directory.fsf.org/wiki/License:Freetype"
247 "https://www.gnu.org/licenses/license-list.html#freetype"))
251 "http://liballeg.org/license.html"
252 "The Allegro 4 license"))
256 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
261 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
266 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
267 "https://www.gnu.org/licenses/license-list#GPLv2"))
271 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
272 "https://www.gnu.org/licenses/license-list#GPLv2"))
276 "https://www.gnu.org/licenses/gpl.html"
277 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
281 "https://www.gnu.org/licenses/gpl.html"
282 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
284 ;; The “GUST font license” is legally equivalent to LPPL v1.3c as it only
285 ;; extends the LPPL with an optional request.
287 (license "GUST font license 1.0"
288 "http://www.gust.org.pl/projects/e-foundry/licenses/GUST-FONT-LICENSE.txt"
289 "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
293 "https://www.gnu.org/licenses/fdl-1.1"
294 "https://www.gnu.org/licenses/license-list#FDL"))
298 "https://www.gnu.org/licenses/fdl-1.2"
299 "https://www.gnu.org/licenses/license-list#FDL"))
303 "https://www.gnu.org/licenses/fdl.html"
304 "https://www.gnu.org/licenses/license-list#FDL"))
307 (license "FreeBSD Documentation License"
308 "https://www.freebsd.org/copyright/freebsd-doc-license.html"
309 "https://www.gnu.org/licenses/license-list.html#FreeBSDDL"))
312 (license "Open Publication License 1.0 or later"
313 "http://opencontent.org/openpub/"
314 "https://www.gnu.org/licenses/license-list#OpenPublicationL"))
318 "http://directory.fsf.org/wiki/License:ISC"
319 "https://www.gnu.org/licenses/license-list.html#ISC"))
323 "http://directory.fsf.org/wiki/License:JPEG"
324 "https://www.gnu.org/licenses/license-list#ijg"))
328 "http://directory.fsf.org/wiki/License:IBMPLv1.0"
329 "https://www.gnu.org/licenses/license-list#IBMPL"))
333 "http://directory.fsf.org/wiki/License:Imlib2"
334 "https://www.gnu.org/licenses/license-list#imlib"))
337 (license "IPA Font License"
338 "http://directory.fsf.org/wiki/License:IPA_Font_License"
339 "https://www.gnu.org/licenses/license-list#IPAFONT"))
343 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
344 "https://www.gnu.org/licenses/why-not-lgpl.html"))
348 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
349 "https://www.gnu.org/licenses/why-not-lgpl.html"))
353 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
354 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
358 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
359 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
363 "https://www.gnu.org/licenses/lgpl.html"
364 "https://www.gnu.org/licenses/license-list#LGPLv3"))
368 "https://www.gnu.org/licenses/lgpl.html"
369 "https://www.gnu.org/licenses/license-list#LGPLv3"))
373 "http://www.mozilla.org/MPL/1.0/"
374 "https://www.gnu.org/licenses/license-list.html#MPL"))
378 "http://directory.fsf.org/wiki/License:MPLv1.1"
379 "https://www.gnu.org/licenses/license-list#MPL"))
383 "http://directory.fsf.org/wiki/License:MPLv2.0"
384 "https://www.gnu.org/licenses/license-list#MPL-2.0"))
387 (license "Ms-PL" ;Microsoft Public License
388 "http://directory.fsf.org/wiki/License:MsPL"
389 "http://www.gnu.org/licenses/license-list.html#ms-pl"))
392 (license "NCSA/University of Illinois Open Source License"
393 "http://directory.fsf.org/wiki/License:IllinoisNCSA"
394 "https://www.gnu.org/licenses/license-list#NCSA"))
397 (license "Nmap license"
398 "https://svn.nmap.org/nmap/COPYING"
399 "https://fedoraproject.org/wiki/Licensing/Nmap"))
403 "http://directory.fsf.org/wiki/License:OpenSSL"
404 "https://www.gnu.org/licenses/license-list#OpenSSL"))
407 (license "OpenLDAPv2.8"
408 "http://directory.fsf.org/wiki/License:OpenLDAPv2.8"
409 "https://www.gnu.org/licenses/license-list#newOpenLDAP"))
410 ;; lists OpenLDAPv2.7, which is virtually identical
413 ;; The license of Perl, GPLv1+ or Artistic (we ignore the latter here).
414 ;; We define this alias to avoid circular dependencies introduced by the use
415 ;; of the '(package-license perl)' idiom.
419 (license "Python Software Foundation License"
420 "http://docs.python.org/license.html"
423 (define public-domain
424 (license "Public Domain"
425 "http://directory.fsf.org/wiki/License:PublicDomain"
426 "https://www.gnu.org/licenses/license-list#PublicDomain"))
430 "http://directory.fsf.org/wiki/License:QPLv1.0"
431 "http://www.gnu.org/licenses/license-list.html#QPL"))
435 "http://repoze.org/LICENSE.txt"
436 "A BSD-like license with a clause requiring all changes to be
437 attributed by author and date."))
440 (license "Ruby License"
441 "http://directory.fsf.org/wiki/License:Ruby"
442 "https://www.ruby-lang.org/en/about/license.txt"))
445 (license "SGI Free Software License B, version 2.0"
446 "http://directory.fsf.org/wiki/License:SGIFreeBv2"
447 "https://www.gnu.org/licenses/license-list.html#SGIFreeB"))
450 (license "SIL OFL 1.1"
451 "http://scripts.sil.org/OFL_web"
452 "https://www.gnu.org/licenses/license-list#SILOFL"))
456 "http://directory.fsf.org/wiki/License:Sleepycat"
457 "https://www.gnu.org/licenses/license-list#BerkeleyDB"))
461 "http://www.tcl.tk/software/tcltk/license.html"
462 "A non-copyleft free software license from the Tcl/Tk project"))
466 "http://directory.fsf.org/wiki/License:Vim7.2"
467 "http://www.gnu.org/licenses/license-list.html#Vim"))
471 "https://unlicense.org/"
472 "https://www.gnu.org/licenses/license-list.html#Unlicense"))
476 "http://www.wtfpl.net"
477 "http://www.wtfpl.net/about/"))
481 "http://directory.fsf.org/wiki/License:X11"
482 "https://www.gnu.org/licenses/license-list#X11License"))
484 (define* (x11-style uri #:optional (comment ""))
485 "Return an X11-style license, whose full text can be found at URI,
486 which may be a file:// URI pointing the package's tree."
490 "This is an X11-style, non-copyleft free software license. "
491 "Check the URI for details. "
495 (license "Zope Public License 2.1"
496 "http://directory.fsf.org/wiki?title=License:ZopePLv2.1"
497 "https://www.gnu.org/licenses/license-list.html#Zope2.0"))
501 "http://www.gzip.org/zlib/zlib_license.html"
502 "https://www.gnu.org/licenses/license-list#ZLib"))
504 (define* (fsf-free uri #:optional (comment ""))
505 "Return a license that does not fit any of the ones above or a collection
506 of licenses, approved as free by the FSF. More details can be found at URI."
511 (define* (fsdg-compatible uri #:optional (comment ""))
512 "Return a license that does not fit any of the ones above or a collection
513 of licenses, not necessarily free, but in accordance with FSDG as Non-functional
514 Data. More details can be found at URI. See also
515 https://www.gnu.org/distros/free-system-distribution-guidelines.en.html#non-functional-data."
516 (license "FSDG-compatible"
520 ;;; licenses.scm ends here