licenses: Add the nmap license.
[jackhill/guix/guix.git] / guix / licenses.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2014, 2015 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 ;;;
12 ;;; This file is part of GNU Guix.
13 ;;;
14 ;;; GNU Guix is free software; you can redistribute it and/or modify it
15 ;;; under the terms of the GNU General Public License as published by
16 ;;; the Free Software Foundation; either version 3 of the License, or (at
17 ;;; your option) any later version.
18 ;;;
19 ;;; GNU Guix is distributed in the hope that it will be useful, but
20 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
21 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 ;;; GNU General Public License for more details.
23 ;;;
24 ;;; You should have received a copy of the GNU General Public License
25 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
26
27 (define-module (guix licenses)
28 #:use-module (srfi srfi-9)
29 #:export (license? license-name license-uri license-comment
30 agpl3 agpl3+
31 asl1.1 asl2.0
32 boost1.0
33 bsd-2 bsd-3 bsd-4
34 non-copyleft
35 bsd-style ;deprecated!
36 cc0
37 cc-by2.0 cc-by3.0 cc-by-sa2.0 cc-by-sa3.0 cc-by-sa4.0
38 cddl1.0
39 cecill-c
40 artistic2.0 clarified-artistic
41 copyleft-next
42 cpl1.0
43 epl1.0
44 expat
45 freetype
46 giftware
47 gpl1 gpl1+ gpl2 gpl2+ gpl3 gpl3+
48 gfl1.0
49 fdl1.1+ fdl1.3+
50 opl1.0+
51 isc
52 ijg
53 ibmpl1.0
54 imlib2
55 ipa
56 lgpl2.0 lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3 lgpl3+
57 mpl1.0 mpl1.1 mpl2.0
58 ms-pl
59 ncsa
60 nmap
61 openldap2.8 openssl
62 psfl public-domain
63 qpl
64 repoze
65 ruby
66 sgifreeb2.0
67 silofl1.1
68 sleepycat
69 tcl/tk
70 unlicense
71 vim
72 x11 x11-style
73 zpl2.1
74 zlib
75 fsf-free))
76
77 (define-record-type <license>
78 (license name uri comment)
79 license?
80 (name license-name)
81 (uri license-uri)
82 (comment license-comment))
83
84 ;;; Commentary:
85 ;;;
86 ;;; Available licenses.
87 ;;;
88 ;;; This list is based on these links:
89 ;;; https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix
90 ;;; https://www.gnu.org/licenses/license-list
91 ;;;
92 ;;; Code:
93
94 (define agpl3
95 (license "AGPL 3"
96 "https://gnu.org/licenses/agpl.html"
97 "https://gnu.org/licenses/why-affero-gpl.html"))
98
99 (define agpl3+
100 (license "AGPL 3+"
101 "https://gnu.org/licenses/agpl.html"
102 "https://gnu.org/licenses/why-affero-gpl.html"))
103
104 (define asl1.1
105 (license "ASL 1.1"
106 "http://directory.fsf.org/wiki/License:Apache1.1"
107 "https://www.gnu.org/licenses/license-list#apache1"))
108
109 (define asl2.0
110 (license "ASL 2.0"
111 "http://directory.fsf.org/wiki/License:Apache2.0"
112 "https://www.gnu.org/licenses/license-list#apache2"))
113
114 (define boost1.0
115 (license "Boost 1.0"
116 "http://directory.fsf.org/wiki/License:Boost1.0"
117 "https://www.gnu.org/licenses/license-list#boost"))
118
119 (define bsd-2
120 (license "FreeBSD"
121 "http://directory.fsf.org/wiki/License:FreeBSD"
122 "https://www.gnu.org/licenses/license-list#FreeBSD"))
123
124 (define bsd-3
125 (license "Modified BSD"
126 "http://directory.fsf.org/wiki/License:BSD_3Clause"
127 "https://www.gnu.org/licenses/license-list#ModifiedBSD"))
128
129 (define bsd-4
130 (license "Original BSD"
131 "http://directory.fsf.org/wiki/License:BSD_4Clause"
132 "https://www.gnu.org/licenses/license-list#OriginalBSD"))
133
134 (define* (non-copyleft uri #:optional (comment ""))
135 "Return a lax, permissive, non-copyleft license (for example a variant of
136 the 3-clause BSD license or the Expat license), whose full text can be found
137 at URI, which may be a file:// URI pointing the package's tree."
138 (license "non-copyleft"
139 uri
140 (string-append
141 "This is a lax, non-copyleft free software license. "
142 "Check the URI for details. "
143 comment)))
144
145 (define bsd-style
146 ;; This alias is kept for backward-compatibility. Do not use it for new
147 ;; packages: it is ambiguous, as rightfully explained at
148 ;; <http://www.gnu.org/philosophy/words-to-avoid.html#BSD-style>.
149 non-copyleft)
150
151 (define cc0
152 (license "CC0"
153 "http://directory.fsf.org/wiki/License:CC0"
154 "http://www.gnu.org/licenses/license-list.html#CC0"))
155
156 (define cc-by-sa4.0
157 (license "CC-BY-SA 4.0"
158 "http://creativecommons.org/licenses/by-sa/4.0/"
159 "Creative Commons Attribution-ShareAlike 4.0 International"))
160
161 (define cc-by-sa3.0
162 (license "CC-BY-SA 3.0"
163 "http://creativecommons.org/licenses/by-sa/3.0/"
164 "Creative Commons Attribution-ShareAlike 3.0 Unported"))
165
166 (define cc-by-sa2.0
167 (license "CC-BY-SA 2.0"
168 "http://creativecommons.org/licenses/by-sa/2.0/"
169 "Creative Commons Attribution-ShareAlike 2.0 Generic"))
170
171 (define cc-by3.0
172 (license "CC-BY 3.0"
173 "http://creativecommons.org/licenses/by/3.0/"
174 "Creative Commons Attribution 3.0 Unported"))
175
176 (define cc-by2.0
177 (license "CC-BY 2.0"
178 "http://creativecommons.org/licenses/by/2.0/"
179 "Creative Commons Attribution 2.0 Generic"))
180
181 (define cddl1.0
182 (license "CDDL 1.0"
183 "http://directory.fsf.org/wiki/License:CDDLv1.0"
184 "https://www.gnu.org/licenses/license-list#CDDL"))
185
186 (define cecill-c
187 (license "CeCILL-C"
188 "http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html"
189 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
190
191 (define artistic2.0
192 (license "Artistic License 2.0"
193 "http://www.perlfoundation.org/artistic_license_2_0"
194 "http://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
195
196 (define clarified-artistic
197 (license "Clarified Artistic"
198 ;; http://directory.fsf.org/wiki/User:Jgay/license-categorization#Clarified_Artistic_License
199 "http://gianluca.dellavedova.org/2011/01/03/clarified-artistic-license/"
200 "https://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
201
202 (define copyleft-next
203 (license "copyleft-next"
204 "https://raw.github.com/richardfontana/copyleft-next/master/Releases/copyleft-next-0.3.0"
205 "GPL-compatible copyleft license"))
206
207 (define cpl1.0
208 (license "CPL 1.0"
209 "http://directory.fsf.org/wiki/License:CPLv1.0"
210 "https://www.gnu.org/licenses/license-list#CommonPublicLicense10"))
211
212 (define epl1.0
213 (license "EPL 1.0"
214 "http://directory.fsf.org/wiki/License:EPLv1.0"
215 "https://www.gnu.org/licenses/license-list#EPL"))
216
217 (define expat
218 (license "Expat"
219 "http://directory.fsf.org/wiki/License:Expat"
220 "https://www.gnu.org/licenses/license-list.html#Expat"))
221
222 (define freetype
223 (license "Freetype"
224 "http://directory.fsf.org/wiki/License:Freetype"
225 "https://www.gnu.org/licenses/license-list.html#freetype"))
226
227 (define giftware
228 (license "Giftware"
229 "http://liballeg.org/license.html"
230 "The Allegro 4 license"))
231
232 (define gpl1
233 (license "GPL 1"
234 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
235 #f))
236
237 (define gpl1+
238 (license "GPL 1+"
239 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
240 #f))
241
242 (define gpl2
243 (license "GPL 2"
244 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
245 "https://www.gnu.org/licenses/license-list#GPLv2"))
246
247 (define gpl2+
248 (license "GPL 2+"
249 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
250 "https://www.gnu.org/licenses/license-list#GPLv2"))
251
252 (define gpl3
253 (license "GPL 3"
254 "https://www.gnu.org/licenses/gpl.html"
255 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
256
257 (define gpl3+
258 (license "GPL 3+"
259 "https://www.gnu.org/licenses/gpl.html"
260 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
261
262 ;; The “GUST font license” is legally equivalent to LPPL v1.3c as it only
263 ;; extends the LPPL with an optional request.
264 (define gfl1.0
265 (license "GUST font license 1.0"
266 "http://www.gust.org.pl/projects/e-foundry/licenses/GUST-FONT-LICENSE.txt"
267 "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
268
269 (define fdl1.1+
270 (license "FDL 1.1+"
271 "https://www.gnu.org/licenses/fdl-1.1"
272 "https://www.gnu.org/licenses/license-list#FDL"))
273
274 (define fdl1.3+
275 (license "FDL 1.3+"
276 "https://www.gnu.org/licenses/fdl.html"
277 "https://www.gnu.org/licenses/license-list#FDL"))
278
279 (define opl1.0+
280 (license "Open Publication License 1.0 or later"
281 "http://opencontent.org/openpub/"
282 "https://www.gnu.org/licenses/license-list#OpenPublicationL"))
283
284 (define isc
285 (license "ISC"
286 "http://directory.fsf.org/wiki/License:ISC"
287 "https://www.gnu.org/licenses/license-list.html#ISC"))
288
289 (define ijg
290 (license "IJG"
291 "http://directory.fsf.org/wiki/License:JPEG"
292 "https://www.gnu.org/licenses/license-list#ijg"))
293
294 (define ibmpl1.0
295 (license "IBMPL 1.0"
296 "http://directory.fsf.org/wiki/License:IBMPLv1.0"
297 "https://www.gnu.org/licenses/license-list#IBMPL"))
298
299 (define imlib2
300 (license "Imlib2"
301 "http://directory.fsf.org/wiki/License:Imlib2"
302 "https://www.gnu.org/licenses/license-list#imlib"))
303
304 (define ipa
305 (license "IPA Font License"
306 "http://directory.fsf.org/wiki/License:IPA_Font_License"
307 "https://www.gnu.org/licenses/license-list#IPAFONT"))
308
309 (define lgpl2.0
310 (license "LGPL 2.0"
311 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
312 "https://www.gnu.org/licenses/why-not-lgpl.html"))
313
314 (define lgpl2.0+
315 (license "LGPL 2.0+"
316 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
317 "https://www.gnu.org/licenses/why-not-lgpl.html"))
318
319 (define lgpl2.1
320 (license "LGPL 2.1"
321 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
322 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
323
324 (define lgpl2.1+
325 (license "LGPL 2.1+"
326 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
327 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
328
329 (define lgpl3
330 (license "LGPL 3"
331 "https://www.gnu.org/licenses/lgpl.html"
332 "https://www.gnu.org/licenses/license-list#LGPLv3"))
333
334 (define lgpl3+
335 (license "LGPL 3+"
336 "https://www.gnu.org/licenses/lgpl.html"
337 "https://www.gnu.org/licenses/license-list#LGPLv3"))
338
339 (define mpl1.0
340 (license "MPL 1.0"
341 "http://www.mozilla.org/MPL/1.0/"
342 "https://www.gnu.org/licenses/license-list.html#MPL"))
343
344 (define mpl1.1
345 (license "MPL 1.1"
346 "http://directory.fsf.org/wiki/License:MPLv1.1"
347 "https://www.gnu.org/licenses/license-list#MPL"))
348
349 (define mpl2.0
350 (license "MPL 2.0"
351 "http://directory.fsf.org/wiki/License:MPLv2.0"
352 "https://www.gnu.org/licenses/license-list#MPL-2.0"))
353
354 (define ms-pl
355 (license "Ms-PL" ;Microsoft Public License
356 "http://directory.fsf.org/wiki/License:MsPL"
357 "http://www.gnu.org/licenses/license-list.html#ms-pl"))
358
359 (define ncsa
360 (license "NCSA/University of Illinois Open Source License"
361 "http://directory.fsf.org/wiki/License:IllinoisNCSA"
362 "https://www.gnu.org/licenses/license-list#NCSA"))
363
364 (define nmap
365 (license "Nmap license"
366 "https://svn.nmap.org/nmap/COPYING"
367 "https://fedoraproject.org/wiki/Licensing/Nmap"))
368
369 (define openssl
370 (license "OpenSSL"
371 "http://directory.fsf.org/wiki/License:OpenSSL"
372 "https://www.gnu.org/licenses/license-list#OpenSSL"))
373
374 (define openldap2.8
375 (license "OpenLDAPv2.8"
376 "http://directory.fsf.org/wiki/License:OpenLDAPv2.8"
377 "https://www.gnu.org/licenses/license-list#newOpenLDAP"))
378 ;; lists OpenLDAPv2.7, which is virtually identical
379
380 (define psfl
381 (license "Python Software Foundation License"
382 "http://docs.python.org/license.html"
383 #f))
384
385 (define public-domain
386 (license "Public Domain"
387 "http://directory.fsf.org/wiki/License:PublicDomain"
388 "https://www.gnu.org/licenses/license-list#PublicDomain"))
389
390 (define qpl
391 (license "QPL"
392 "http://directory.fsf.org/wiki/License:QPLv1.0"
393 "http://www.gnu.org/licenses/license-list.html#QPL"))
394
395 (define repoze
396 (license "Repoze"
397 "http://repoze.org/LICENSE.txt"
398 "A BSD-like license with a clause requiring all changes to be
399 attributed by author and date."))
400
401 (define ruby
402 (license "Ruby License"
403 "http://directory.fsf.org/wiki/License:Ruby"
404 "https://www.ruby-lang.org/en/about/license.txt"))
405
406 (define sgifreeb2.0
407 (license "SGI Free Software License B, version 2.0"
408 "http://directory.fsf.org/wiki/License:SGIFreeBv2"
409 "https://www.gnu.org/licenses/license-list.html#SGIFreeB"))
410
411 (define silofl1.1
412 (license "SIL OFL 1.1"
413 "http://scripts.sil.org/OFL_web"
414 "https://www.gnu.org/licenses/license-list#SILOFL"))
415
416 (define sleepycat
417 (license "Sleepycat"
418 "http://directory.fsf.org/wiki/License:Sleepycat"
419 "https://www.gnu.org/licenses/license-list#BerkeleyDB"))
420
421 (define tcl/tk
422 (license "Tcl/Tk"
423 "http://www.tcl.tk/software/tcltk/license.html"
424 "A non-copyleft free software license from the Tcl/Tk project"))
425
426 (define vim
427 (license "Vim"
428 "http://directory.fsf.org/wiki/License:Vim7.2"
429 "http://www.gnu.org/licenses/license-list.html#Vim"))
430
431 (define unlicense
432 (license "Unlicense"
433 "https://unlicense.org/"
434 "https://www.gnu.org/licenses/license-list.html#Unlicense"))
435
436 (define x11
437 (license "X11"
438 "http://directory.fsf.org/wiki/License:X11"
439 "https://www.gnu.org/licenses/license-list#X11License"))
440
441 (define* (x11-style uri #:optional (comment ""))
442 "Return an X11-style license, whose full text can be found at URI,
443 which may be a file:// URI pointing the package's tree."
444 (license "X11-style"
445 uri
446 (string-append
447 "This is an X11-style, non-copyleft free software license. "
448 "Check the URI for details. "
449 comment)))
450
451 (define zpl2.1
452 (license "Zope Public License 2.1"
453 "http://directory.fsf.org/wiki?title=License:ZopePLv2.1"
454 "https://www.gnu.org/licenses/license-list.html#Zope2.0"))
455
456 (define zlib
457 (license "Zlib"
458 "http://www.gzip.org/zlib/zlib_license.html"
459 "https://www.gnu.org/licenses/license-list#ZLib"))
460
461 (define* (fsf-free uri #:optional (comment ""))
462 "Return a license that does not fit any of the ones above or a collection
463 of licenses, approved as free by the FSF. More details can be found at URI."
464 (license "FSF-free"
465 uri
466 comment))
467
468 ;;; licenses.scm ends here