pull: Autoload (gnu ...) modules.
[jackhill/guix/guix.git] / guix / licenses.scm
CommitLineData
233e7676 1;;; GNU Guix --- Functional package management for GNU
2b8a9cca 2;;; Copyright © 2012, 2014, 2015, 2017, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
6d5e7ef3 3;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
e2034de5 4;;; Copyright © 2012, 2013 Nikita Karetnikov <nikita@karetnikov.org>
e5c35d9a 5;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
da945758 6;;; Copyright © 2015, 2019 Ricardo Wurmus <rekado@elephly.net>
ea4a0e81 7;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
aaa49e8c 8;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
ca9eb489 9;;; Copyright © 2016 Fabian Harfert <fhmgufs@web.de>
a10bf139 10;;; Copyright © 2016 Rene Saavedra <rennes@openmailbox.org>
3c986a7d 11;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
33143961 12;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
2f3108ad 13;;; Copyright © 2017 Petter <petter@mykolab.ch>
8b8bf88f 14;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
41209a6f 15;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
00cf98eb 16;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
9c4aaa63 17;;; Copyright © 2020 André Batista <nandre@riseup.net>
f045a7a9 18;;; Copyright © 2020 Helio Machado <0x2b3bfa0+guix@googlemail.com>
74a625eb 19;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
7e163215 20;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
838d78e3 21;;;
233e7676 22;;; This file is part of GNU Guix.
838d78e3 23;;;
233e7676 24;;; GNU Guix is free software; you can redistribute it and/or modify it
838d78e3
NK
25;;; under the terms of the GNU General Public License as published by
26;;; the Free Software Foundation; either version 3 of the License, or (at
27;;; your option) any later version.
28;;;
233e7676 29;;; GNU Guix is distributed in the hope that it will be useful, but
838d78e3
NK
30;;; WITHOUT ANY WARRANTY; without even the implied warranty of
31;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32;;; GNU General Public License for more details.
33;;;
34;;; You should have received a copy of the GNU General Public License
233e7676 35;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
838d78e3
NK
36
37(define-module (guix licenses)
38 #:use-module (srfi srfi-9)
15976134 39 #:export (license? license-name license-uri license-comment
59b20347 40 agpl1 agpl3 agpl3+
9c4aaa63 41 apsl2
f88ce395 42 asl1.1 asl2.0
838d78e3 43 boost1.0
7e163215 44 bsd-0 bsd-1 bsd-2 bsd-3 bsd-4
b3345dc4 45 non-copyleft
71639e1f 46 cc0
8b8bf88f
MB
47 cc-by2.0 cc-by3.0 cc-by4.0
48 cc-by-sa2.0 cc-by-sa3.0 cc-by-sa4.0
2374dee7 49 cc-sampling-plus-1.0
965ba54b 50 cddl1.0 cddl1.1
756be979 51 cecill cecill-b cecill-c
f8e36623 52 artistic2.0 clarified-artistic
0eed5501 53 copyleft-next
838d78e3 54 cpl1.0
f045a7a9 55 cua-opl1.0
095494ed 56 edl1.0
838d78e3 57 epl1.0
8057c9e9 58 epl2.0
d3e88906 59 eupl1.2
f15b31c5 60 expat
b387a1c5 61 freetype
7e67fdd1 62 freebsd-doc
921d9dc7 63 giftware
f15b31c5 64 gpl1 gpl1+ gpl2 gpl2+ gpl3 gpl3+
dee38b7b 65 gfl1.0
b58691fa 66 fdl1.1+ fdl1.2+ fdl1.3+
446c7113 67 opl1.0+ osl2.1
b1426f17 68 isc
838d78e3
NK
69 ijg
70 ibmpl1.0
8835aed4 71 imlib2
6d5e7ef3 72 ipa
942c4f81 73 knuth
74a625eb 74 lal1.3
cd0a9c91 75 lgpl2.0 lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3 lgpl3+ llgpl
da945758 76 lppl lppl1.0+ lppl1.1+ lppl1.2 lppl1.2+
942c4f81
RW
77 lppl1.3 lppl1.3+
78 lppl1.3a lppl1.3a+
79 lppl1.3b lppl1.3b+
80 lppl1.3c lppl1.3c+
41209a6f 81 miros
ea4a0e81 82 mpl1.0 mpl1.1 mpl2.0
fdbb9ded 83 ms-pl
499cdcc6 84 ncsa
2dba37e2 85 nmap
5d33e789 86 ogl-psi1.0
1ca98280 87 openldap2.8 openssl
2f3108ad 88 perl-license
e2034de5 89 psfl public-domain
d192efae 90 qpl
d13d2826 91 qwt1.0
0db71dd2 92 repoze
6ef8c59a 93 ruby
e5c35d9a 94 sgifreeb2.0
d9e56454 95 silofl1.1
2824146b 96 sleepycat
d29f6470 97 tcl/tk
cb9cb2e8 98 unicode
aaa49e8c 99 unlicense
99e6c1b1 100 vim
0a574d7b 101 w3c
bbd60260 102 x11 x11-style
4a4dac20 103 zpl2.1
6d36a6f3 104 zlib
d8c8e423 105 fsf-free
33143961 106 wtfpl2
00cf98eb 107 wxwindows3.1+
78407a27 108 hpnd
33143961 109 fsdg-compatible))
838d78e3
NK
110
111(define-record-type <license>
112 (license name uri comment)
113 license?
114 (name license-name)
115 (uri license-uri)
116 (comment license-comment))
117
118;;; Commentary:
119;;;
120;;; Available licenses.
121;;;
122;;; This list is based on these links:
ca534666 123;;; https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix
838d78e3
NK
124;;; https://www.gnu.org/licenses/license-list
125;;;
f045a7a9
HM
126;;; Please update spdx-string->license from guix/import/utils.scm
127;;; when modifying this list to avoid mismatches.
128;;;
838d78e3
NK
129;;; Code:
130
59b20347
DC
131(define agpl1
132 (license "AGPL 1"
133 "https://gnu.org/licenses/agpl.html"
134 "https://gnu.org/licenses/why-affero-gpl.html"))
135
ef7cf291
NK
136(define agpl3
137 (license "AGPL 3"
138 "https://gnu.org/licenses/agpl.html"
139 "https://gnu.org/licenses/why-affero-gpl.html"))
140
141(define agpl3+
142 (license "AGPL 3+"
143 "https://gnu.org/licenses/agpl.html"
144 "https://gnu.org/licenses/why-affero-gpl.html"))
145
9c4aaa63
AB
146(define apsl2
147 (license "APSL 2.0"
148 "https://directory.fsf.org/wiki/License:APSL-2.0"
149 "https://www.gnu.org/licenses/license-list.html#apsl2"))
150
f88ce395
RJ
151(define asl1.1
152 (license "ASL 1.1"
153 "http://directory.fsf.org/wiki/License:Apache1.1"
154 "https://www.gnu.org/licenses/license-list#apache1"))
155
838d78e3
NK
156(define asl2.0
157 (license "ASL 2.0"
158 "http://directory.fsf.org/wiki/License:Apache2.0"
159 "https://www.gnu.org/licenses/license-list#apache2"))
160
161(define boost1.0
162 (license "Boost 1.0"
163 "http://directory.fsf.org/wiki/License:Boost1.0"
164 "https://www.gnu.org/licenses/license-list#boost"))
165
60d1df78
AT
166(define bsd-0
167 (license "Zero-Clause BSD"
168 "https://spdx.org/licenses/0BSD.html"
169 "https://opensource.org/licenses/0BSD"))
170
7e163215
XC
171(define bsd-1
172 (license "BSD 1-Clause"
173 "https://spdx.org/licenses/BSD-1-Clause.html"
174 "https://opensource.org/licenses/BSD-1-Clause"))
175
838d78e3
NK
176(define bsd-2
177 (license "FreeBSD"
178 "http://directory.fsf.org/wiki/License:FreeBSD"
179 "https://www.gnu.org/licenses/license-list#FreeBSD"))
180
181(define bsd-3
182 (license "Modified BSD"
183 "http://directory.fsf.org/wiki/License:BSD_3Clause"
184 "https://www.gnu.org/licenses/license-list#ModifiedBSD"))
185
186(define bsd-4
187 (license "Original BSD"
188 "http://directory.fsf.org/wiki/License:BSD_4Clause"
189 "https://www.gnu.org/licenses/license-list#OriginalBSD"))
190
b3345dc4
LC
191(define* (non-copyleft uri #:optional (comment ""))
192 "Return a lax, permissive, non-copyleft license (for example a variant of
193the 3-clause BSD license or the Expat license), whose full text can be found
194at URI, which may be a file:// URI pointing the package's tree."
195 (license "non-copyleft"
f15b31c5
NK
196 uri
197 (string-append
b3345dc4 198 "This is a lax, non-copyleft free software license. "
f15b31c5
NK
199 "Check the URI for details. "
200 comment)))
201
71639e1f
EB
202(define cc0
203 (license "CC0"
204 "http://directory.fsf.org/wiki/License:CC0"
205 "http://www.gnu.org/licenses/license-list.html#CC0"))
206
12abc6e3
LC
207(define cc-by-sa4.0
208 (license "CC-BY-SA 4.0"
209 "http://creativecommons.org/licenses/by-sa/4.0/"
210 "Creative Commons Attribution-ShareAlike 4.0 International"))
211
b7fa2f93
RW
212(define cc-by-sa3.0
213 (license "CC-BY-SA 3.0"
214 "http://creativecommons.org/licenses/by-sa/3.0/"
215 "Creative Commons Attribution-ShareAlike 3.0 Unported"))
216
a10bf139
RS
217(define cc-by-sa2.0
218 (license "CC-BY-SA 2.0"
219 "http://creativecommons.org/licenses/by-sa/2.0/"
220 "Creative Commons Attribution-ShareAlike 2.0 Generic"))
221
8b8bf88f
MB
222(define cc-by4.0
223 (license "CC-BY 4.0"
224 "http://creativecommons.org/licenses/by/4.0/"
225 "Creative Commons Attribution 4.0 Unported"))
226
12abc6e3
LC
227(define cc-by3.0
228 (license "CC-BY 3.0"
229 "http://creativecommons.org/licenses/by/3.0/"
230 "Creative Commons Attribution 3.0 Unported"))
231
a10bf139
RS
232(define cc-by2.0
233 (license "CC-BY 2.0"
234 "http://creativecommons.org/licenses/by/2.0/"
235 "Creative Commons Attribution 2.0 Generic"))
236
2374dee7
AI
237(define cc-sampling-plus-1.0
238 (license "CC-Sampling+ 1.0"
239 "https://creativecommons.org/licenses/sampling+/1.0"
240 "Creative Commons Sampling Plus 1.0"))
241
838d78e3
NK
242(define cddl1.0
243 (license "CDDL 1.0"
244 "http://directory.fsf.org/wiki/License:CDDLv1.0"
245 "https://www.gnu.org/licenses/license-list#CDDL"))
246
965ba54b
JL
247;; CDDL1.1 is the same as 1.0, except that "Sun Microsystems, Inc" becomes "Oracle",
248;; "LOST PROFITS" becoms "LOSS OF GOODWILL" and a section is added between 6.2
249;; and 6.3.
250(define cddl1.1
251 (license "CDDL 1.1"
252 "https://oss.oracle.com/licenses/CDDL+GPL-1.1"
253 "https://www.gnu.org/licenses/license-list#CDDL"))
254
756be979
LC
255(define cecill ;copyleft
256 (license "CeCILL"
257 "http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.html"
258 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
259
260(define cecill-b ;non-copyleft
261 (license "CeCILL-B"
262 "http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html"
263 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
264
265(define cecill-c ;weak copyleft
c711f07c
EB
266 (license "CeCILL-C"
267 "http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html"
268 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
269
f8e36623
EB
270(define artistic2.0
271 (license "Artistic License 2.0"
272 "http://www.perlfoundation.org/artistic_license_2_0"
273 "http://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
274
af8c2a15
LC
275(define clarified-artistic
276 (license "Clarified Artistic"
277 ;; http://directory.fsf.org/wiki/User:Jgay/license-categorization#Clarified_Artistic_License
278 "http://gianluca.dellavedova.org/2011/01/03/clarified-artistic-license/"
279 "https://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
280
0eed5501
LC
281(define copyleft-next
282 (license "copyleft-next"
283 "https://raw.github.com/richardfontana/copyleft-next/master/Releases/copyleft-next-0.3.0"
284 "GPL-compatible copyleft license"))
285
838d78e3
NK
286(define cpl1.0
287 (license "CPL 1.0"
288 "http://directory.fsf.org/wiki/License:CPLv1.0"
289 "https://www.gnu.org/licenses/license-list#CommonPublicLicense10"))
290
f045a7a9
HM
291(define cua-opl1.0
292 (license "CUA Office Public License v1.0"
293 "https://spdx.org/licenses/CUA-OPL-1.0.html"
294 "https://opensource.org/licenses/CUA-OPL-1.0"))
295
095494ed
RW
296(define edl1.0
297 (license "EDL 1.0"
298 "http://directory.fsf.org/wiki/License:EDLv1.0"
299 "https://eclipse.org/org/documents/edl-v10.php"))
300
838d78e3
NK
301(define epl1.0
302 (license "EPL 1.0"
303 "http://directory.fsf.org/wiki/License:EPLv1.0"
304 "https://www.gnu.org/licenses/license-list#EPL"))
305
8057c9e9
RW
306(define epl2.0
307 (license "EPL 2.0"
308 "https://www.eclipse.org/legal/epl-2.0/"
309 "https://www.gnu.org/licenses/license-list#EPL2"))
310
d3e88906
ST
311(define eupl1.2
312 (license "EUPL 1.2"
313 "https://directory.fsf.org/wiki/License:EUPL-1.2"
314 "https://www.gnu.org/licenses/license-list#EUPL-1.2"))
315
f15b31c5
NK
316(define expat
317 (license "Expat"
318 "http://directory.fsf.org/wiki/License:Expat"
319 "https://www.gnu.org/licenses/license-list.html#Expat"))
320
b387a1c5
AE
321(define freetype
322 (license "Freetype"
323 "http://directory.fsf.org/wiki/License:Freetype"
324 "https://www.gnu.org/licenses/license-list.html#freetype"))
325
921d9dc7
DT
326(define giftware
327 (license "Giftware"
4968ea2c 328 "https://liballeg.org/license.html"
921d9dc7
DT
329 "The Allegro 4 license"))
330
f15b31c5
NK
331(define gpl1
332 (license "GPL 1"
333 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
334 #f))
335
336(define gpl1+
337 (license "GPL 1+"
338 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
339 #f))
340
838d78e3
NK
341(define gpl2
342 (license "GPL 2"
343 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
344 "https://www.gnu.org/licenses/license-list#GPLv2"))
345
346(define gpl2+
347 (license "GPL 2+"
348 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
349 "https://www.gnu.org/licenses/license-list#GPLv2"))
350
351(define gpl3
352 (license "GPL 3"
353 "https://www.gnu.org/licenses/gpl.html"
354 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
355
356(define gpl3+
357 (license "GPL 3+"
358 "https://www.gnu.org/licenses/gpl.html"
359 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
360
dee38b7b
RW
361;; The “GUST font license” is legally equivalent to LPPL v1.3c as it only
362;; extends the LPPL with an optional request.
363(define gfl1.0
364 (license "GUST font license 1.0"
365 "http://www.gust.org.pl/projects/e-foundry/licenses/GUST-FONT-LICENSE.txt"
366 "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
367
ca9eb489
FH
368(define fdl1.1+
369 (license "FDL 1.1+"
370 "https://www.gnu.org/licenses/fdl-1.1"
371 "https://www.gnu.org/licenses/license-list#FDL"))
372
59b20347
DC
373(define fdl1.2+
374 (license "FDL 1.2+"
375 "https://www.gnu.org/licenses/fdl-1.2"
376 "https://www.gnu.org/licenses/license-list#FDL"))
377
66ea6713
LC
378(define fdl1.3+
379 (license "FDL 1.3+"
380 "https://www.gnu.org/licenses/fdl.html"
381 "https://www.gnu.org/licenses/license-list#FDL"))
382
7e67fdd1 383(define freebsd-doc
384 (license "FreeBSD Documentation License"
385 "https://www.freebsd.org/copyright/freebsd-doc-license.html"
386 "https://www.gnu.org/licenses/license-list.html#FreeBSDDL"))
387
c058f4ec
MW
388(define opl1.0+
389 (license "Open Publication License 1.0 or later"
390 "http://opencontent.org/openpub/"
391 "https://www.gnu.org/licenses/license-list#OpenPublicationL"))
392
446c7113
RW
393(define osl2.1
394 (license "The Open Software License 2.1"
395 "https://opensource.org/licenses/osl-2.1.php"
396 "https://www.gnu.org/licenses/license-list#OSL"))
397
b1426f17
CR
398(define isc
399 (license "ISC"
400 "http://directory.fsf.org/wiki/License:ISC"
401 "https://www.gnu.org/licenses/license-list.html#ISC"))
402
838d78e3
NK
403(define ijg
404 (license "IJG"
405 "http://directory.fsf.org/wiki/License:JPEG"
406 "https://www.gnu.org/licenses/license-list#ijg"))
407
408(define ibmpl1.0
409 (license "IBMPL 1.0"
410 "http://directory.fsf.org/wiki/License:IBMPLv1.0"
411 "https://www.gnu.org/licenses/license-list#IBMPL"))
412
8835aed4
AK
413(define imlib2
414 (license "Imlib2"
415 "http://directory.fsf.org/wiki/License:Imlib2"
416 "https://www.gnu.org/licenses/license-list#imlib"))
417
6d5e7ef3
AE
418(define ipa
419 (license "IPA Font License"
420 "http://directory.fsf.org/wiki/License:IPA_Font_License"
421 "https://www.gnu.org/licenses/license-list#IPAFONT"))
422
942c4f81
RW
423(define knuth
424 (license "Donald Knuth's license for TeX"
425 "http://www.ctan.org/license/knuth"
426 "Modification are only permitted under a different name."))
427
74a625eb
FG
428(define lal1.3
429 (license "Free Art License 1.3"
430 "http://artlibre.org/licence/lal/en/"
431 "https://www.gnu.org/licenses/license-list#FreeArt"))
432
f15b31c5
NK
433(define lgpl2.0
434 (license "LGPL 2.0"
435 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
436 "https://www.gnu.org/licenses/why-not-lgpl.html"))
437
438(define lgpl2.0+
439 (license "LGPL 2.0+"
440 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
441 "https://www.gnu.org/licenses/why-not-lgpl.html"))
442
838d78e3
NK
443(define lgpl2.1
444 (license "LGPL 2.1"
445 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
446 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
447
448(define lgpl2.1+
449 (license "LGPL 2.1+"
450 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
451 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
452
453(define lgpl3
454 (license "LGPL 3"
455 "https://www.gnu.org/licenses/lgpl.html"
456 "https://www.gnu.org/licenses/license-list#LGPLv3"))
457
458(define lgpl3+
459 (license "LGPL 3+"
460 "https://www.gnu.org/licenses/lgpl.html"
461 "https://www.gnu.org/licenses/license-list#LGPLv3"))
462
cd0a9c91
KCB
463(define llgpl
464 (license "LLGPL"
465 "https://opensource.franz.com/preamble.html"
466 "Lisp Lesser General Public License"))
467
942c4f81
RW
468(define lppl
469 (license "LPPL (any version)"
470 "https://www.latex-project.org/lppl/lppl-1-0/"
471 "LaTeX Project Public License 1.0"))
472
473(define lppl1.0+
474 (license "LPPL 1.0+"
475 "https://www.latex-project.org/lppl/lppl-1-0/"
476 "LaTeX Project Public License 1.0"))
477
da945758
RW
478(define lppl1.1+
479 (license "LPPL 1.1+"
480 "https://www.latex-project.org/lppl/lppl-1-1/"
481 "LaTeX Project Public License 1.1"))
482
942c4f81
RW
483(define lppl1.2
484 (license "LPPL 1.2"
485 "http://directory.fsf.org/wiki/License:LPPLv1.2"
486 "https://www.gnu.org/licenses/license-list#LPPL-1.2"))
487
488(define lppl1.2+
489 (license "LPPL 1.2+"
490 "http://directory.fsf.org/wiki/License:LPPLv1.2"
491 "https://www.gnu.org/licenses/license-list#LPPL-1.2"))
492
493(define lppl1.3
494 (license "LPPL 1.3"
495 "https://www.latex-project.org/lppl/lppl-1-3/"
496 "LaTeX Project Public License 1.3"))
497
498(define lppl1.3+
499 (license "LPPL 1.3+"
500 "https://www.latex-project.org/lppl/lppl-1-3/"
501 "LaTeX Project Public License 1.3+"))
502
503(define lppl1.3a
504 (license "LPPL 1.3a"
505 "http://directory.fsf.org/wiki/License:LPPLv1.3a"
506 "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
507
508(define lppl1.3a+
509 (license "LPPL 1.3a+"
510 "http://directory.fsf.org/wiki/License:LPPLv1.3a"
511 "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
512
513(define lppl1.3b
514 (license "LPPL 1.3b"
515 "https://www.latex-project.org/lppl/lppl-1-3b/"
516 "LaTeX Project Public License 1.3b"))
517
518(define lppl1.3b+
519 (license "LPPL 1.3b+"
520 "https://www.latex-project.org/lppl/lppl-1-3b/"
521 "LaTeX Project Public License 1.3b or later"))
522
523(define lppl1.3c
524 (license "LPPL 1.3c"
525 "https://www.latex-project.org/lppl/lppl-1-3c/"
526 "LaTeX Project Public License 1.3c"))
527
528(define lppl1.3c+
529 (license "LPPL 1.3c+"
530 "https://www.latex-project.org/lppl/lppl-1-3c/"
531 "LaTeX Project Public License 1.3c or later"))
532
41209a6f
AI
533(define miros
534 (license "MirOS"
535 "https://www.mirbsd.org/MirOS-Licence.htm"
536 "MirOS License"))
537
ea4a0e81
EB
538(define mpl1.0
539 (license "MPL 1.0"
540 "http://www.mozilla.org/MPL/1.0/"
541 "https://www.gnu.org/licenses/license-list.html#MPL"))
542
0ae332d3
LC
543(define mpl1.1
544 (license "MPL 1.1"
545 "http://directory.fsf.org/wiki/License:MPLv1.1"
546 "https://www.gnu.org/licenses/license-list#MPL"))
547
838d78e3
NK
548(define mpl2.0
549 (license "MPL 2.0"
550 "http://directory.fsf.org/wiki/License:MPLv2.0"
551 "https://www.gnu.org/licenses/license-list#MPL-2.0"))
552
fdbb9ded
LC
553(define ms-pl
554 (license "Ms-PL" ;Microsoft Public License
555 "http://directory.fsf.org/wiki/License:MsPL"
556 "http://www.gnu.org/licenses/license-list.html#ms-pl"))
557
499cdcc6
EB
558(define ncsa
559 (license "NCSA/University of Illinois Open Source License"
560 "http://directory.fsf.org/wiki/License:IllinoisNCSA"
561 "https://www.gnu.org/licenses/license-list#NCSA"))
562
2dba37e2
LP
563(define nmap
564 (license "Nmap license"
565 "https://svn.nmap.org/nmap/COPYING"
566 "https://fedoraproject.org/wiki/Licensing/Nmap"))
dcd19c0a 567
5d33e789
AI
568(define ogl-psi1.0
569 (license "Open Government Licence for Public Sector Information"
570 "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/1/"
571 #f))
572
838d78e3
NK
573(define openssl
574 (license "OpenSSL"
575 "http://directory.fsf.org/wiki/License:OpenSSL"
576 "https://www.gnu.org/licenses/license-list#OpenSSL"))
577
1ca98280
AE
578(define openldap2.8
579 (license "OpenLDAPv2.8"
580 "http://directory.fsf.org/wiki/License:OpenLDAPv2.8"
581 "https://www.gnu.org/licenses/license-list#newOpenLDAP"))
582 ;; lists OpenLDAPv2.7, which is virtually identical
583
2f3108ad
P
584(define perl-license
585 ;; The license of Perl, GPLv1+ or Artistic (we ignore the latter here).
586 ;; We define this alias to avoid circular dependencies introduced by the use
587 ;; of the '(package-license perl)' idiom.
588 gpl1+)
589
e2034de5
NK
590(define psfl
591 (license "Python Software Foundation License"
592 "http://docs.python.org/license.html"
593 #f))
594
838d78e3
NK
595(define public-domain
596 (license "Public Domain"
597 "http://directory.fsf.org/wiki/License:PublicDomain"
598 "https://www.gnu.org/licenses/license-list#PublicDomain"))
599
d192efae
CR
600(define qpl
601 (license "QPL"
602 "http://directory.fsf.org/wiki/License:QPLv1.0"
603 "http://www.gnu.org/licenses/license-list.html#QPL"))
604
d13d2826
AI
605(define qwt1.0
606 (license "QWT 1.0"
607 "http://qwt.sourceforge.net/qwtlicense.html"
608 "GNU Lesser General Public License with exceptions"))
609
0db71dd2
LF
610(define repoze
611 (license "Repoze"
612 "http://repoze.org/LICENSE.txt"
613 "A BSD-like license with a clause requiring all changes to be
614 attributed by author and date."))
615
6ef8c59a
PP
616(define ruby
617 (license "Ruby License"
618 "http://directory.fsf.org/wiki/License:Ruby"
619 "https://www.ruby-lang.org/en/about/license.txt"))
620
e5c35d9a
MW
621(define sgifreeb2.0
622 (license "SGI Free Software License B, version 2.0"
623 "http://directory.fsf.org/wiki/License:SGIFreeBv2"
624 "https://www.gnu.org/licenses/license-list.html#SGIFreeB"))
625
d9e56454
AK
626(define silofl1.1
627 (license "SIL OFL 1.1"
628 "http://scripts.sil.org/OFL_web"
629 "https://www.gnu.org/licenses/license-list#SILOFL"))
630
2824146b
RW
631(define sleepycat
632 (license "Sleepycat"
633 "http://directory.fsf.org/wiki/License:Sleepycat"
634 "https://www.gnu.org/licenses/license-list#BerkeleyDB"))
635
d29f6470
JN
636(define tcl/tk
637 (license "Tcl/Tk"
638 "http://www.tcl.tk/software/tcltk/license.html"
639 "A non-copyleft free software license from the Tcl/Tk project"))
640
99e6c1b1
AE
641(define vim
642 (license "Vim"
643 "http://directory.fsf.org/wiki/License:Vim7.2"
644 "http://www.gnu.org/licenses/license-list.html#Vim"))
645
cb9cb2e8
LP
646(define unicode
647 (license "Unicode"
648 "https://directory.fsf.org/wiki/License:Unicode"
649 "http://www.gnu.org/licenses/license-list.html#Unicode"))
650
aaa49e8c
LF
651(define unlicense
652 (license "Unlicense"
653 "https://unlicense.org/"
654 "https://www.gnu.org/licenses/license-list.html#Unlicense"))
655
0a574d7b
BH
656(define w3c
657 (license "W3C Software Notice and License"
658 "https://directory.fsf.org/wiki/License:W3C_31Dec2002"
659 "https://www.gnu.org/licenses/license-list.en.html#W3C"))
660
d8c8e423 661(define wtfpl2
662 (license "WTFPL 2"
663 "http://www.wtfpl.net"
664 "http://www.wtfpl.net/about/"))
665
00cf98eb
RH
666(define wxwindows3.1+
667 (license "wxWindows 3.1+"
668 "https://wxwidgets.org/about/licence"
669 "https://www.gnu.org/licenses/license-list.html#Wxwind"))
670
838d78e3
NK
671(define x11
672 (license "X11"
673 "http://directory.fsf.org/wiki/License:X11"
674 "https://www.gnu.org/licenses/license-list#X11License"))
675
bbd60260
NK
676(define* (x11-style uri #:optional (comment ""))
677 "Return an X11-style license, whose full text can be found at URI,
678which may be a file:// URI pointing the package's tree."
679 (license "X11-style"
680 uri
681 (string-append
682 "This is an X11-style, non-copyleft free software license. "
683 "Check the URI for details. "
684 comment)))
685
4a4dac20
RW
686(define zpl2.1
687 (license "Zope Public License 2.1"
688 "http://directory.fsf.org/wiki?title=License:ZopePLv2.1"
689 "https://www.gnu.org/licenses/license-list.html#Zope2.0"))
690
838d78e3
NK
691(define zlib
692 (license "Zlib"
2b8a9cca 693 "https://zlib.net/zlib_license.html"
838d78e3
NK
694 "https://www.gnu.org/licenses/license-list#ZLib"))
695
78407a27
GB
696(define hpnd
697 (license "HPND"
698 "https://directory.fsf.org/wiki/License:HPND"
699 "https://www.gnu.org/licenses/license-list#HPND"))
700
6d36a6f3
AE
701(define* (fsf-free uri #:optional (comment ""))
702 "Return a license that does not fit any of the ones above or a collection
703of licenses, approved as free by the FSF. More details can be found at URI."
704 (license "FSF-free"
705 uri
706 comment))
707
33143961
CL
708(define* (fsdg-compatible uri #:optional (comment ""))
709 "Return a license that does not fit any of the ones above or a collection
710of licenses, not necessarily free, but in accordance with FSDG as Non-functional
711Data. More details can be found at URI. See also
712https://www.gnu.org/distros/free-system-distribution-guidelines.en.html#non-functional-data."
713 (license "FSDG-compatible"
714 uri
715 comment))
716
838d78e3 717;;; licenses.scm ends here