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>
9 ;;; This file is part of GNU Guix.
11 ;;; GNU Guix is free software; you can redistribute it and/or modify it
12 ;;; under the terms of the GNU General Public License as published by
13 ;;; the Free Software Foundation; either version 3 of the License, or (at
14 ;;; your option) any later version.
16 ;;; GNU Guix is distributed in the hope that it will be useful, but
17 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;;; GNU General Public License for more details.
21 ;;; You should have received a copy of the GNU General Public License
22 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
24 (define-module (guix licenses)
25 #:use-module (srfi srfi-9)
26 #:export (license? license-name license-uri license-comment
32 bsd-style ;deprecated!
34 cc-by-sa4.0 cc-by-sa3.0 cc-by3.0
37 artistic2.0 clarified-artistic
43 gpl1 gpl1+ gpl2 gpl2+ gpl3 gpl3+
52 lgpl2.0 lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3 lgpl3+
69 (define-record-type <license>
70 (license name uri comment)
74 (comment license-comment))
78 ;;; Available licenses.
80 ;;; This list is based on these links:
81 ;;; https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix
82 ;;; https://www.gnu.org/licenses/license-list
88 "https://gnu.org/licenses/agpl.html"
89 "https://gnu.org/licenses/why-affero-gpl.html"))
93 "https://gnu.org/licenses/agpl.html"
94 "https://gnu.org/licenses/why-affero-gpl.html"))
98 "http://directory.fsf.org/wiki/License:Apache2.0"
99 "https://www.gnu.org/licenses/license-list#apache2"))
103 "http://directory.fsf.org/wiki/License:Boost1.0"
104 "https://www.gnu.org/licenses/license-list#boost"))
108 "http://directory.fsf.org/wiki/License:FreeBSD"
109 "https://www.gnu.org/licenses/license-list#FreeBSD"))
112 (license "Modified BSD"
113 "http://directory.fsf.org/wiki/License:BSD_3Clause"
114 "https://www.gnu.org/licenses/license-list#ModifiedBSD"))
117 (license "Original BSD"
118 "http://directory.fsf.org/wiki/License:BSD_4Clause"
119 "https://www.gnu.org/licenses/license-list#OriginalBSD"))
121 (define* (non-copyleft uri #:optional (comment ""))
122 "Return a lax, permissive, non-copyleft license (for example a variant of
123 the 3-clause BSD license or the Expat license), whose full text can be found
124 at URI, which may be a file:// URI pointing the package's tree."
125 (license "non-copyleft"
128 "This is a lax, non-copyleft free software license. "
129 "Check the URI for details. "
133 ;; This alias is kept for backward-compatibility. Do not use it for new
134 ;; packages: it is ambiguous, as rightfully explained at
135 ;; <http://www.gnu.org/philosophy/words-to-avoid.html#BSD-style>.
140 "http://directory.fsf.org/wiki/License:CC0"
141 "http://www.gnu.org/licenses/license-list.html#CC0"))
144 (license "CC-BY-SA 4.0"
145 "http://creativecommons.org/licenses/by-sa/4.0/"
146 "Creative Commons Attribution-ShareAlike 4.0 International"))
149 (license "CC-BY-SA 3.0"
150 "http://creativecommons.org/licenses/by-sa/3.0/"
151 "Creative Commons Attribution-ShareAlike 3.0 Unported"))
155 "http://creativecommons.org/licenses/by/3.0/"
156 "Creative Commons Attribution 3.0 Unported"))
160 "http://directory.fsf.org/wiki/License:CDDLv1.0"
161 "https://www.gnu.org/licenses/license-list#CDDL"))
165 "http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html"
166 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
169 (license "Artistic License 2.0"
170 "http://www.perlfoundation.org/artistic_license_2_0"
171 "http://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
173 (define clarified-artistic
174 (license "Clarified Artistic"
175 ;; http://directory.fsf.org/wiki/User:Jgay/license-categorization#Clarified_Artistic_License
176 "http://gianluca.dellavedova.org/2011/01/03/clarified-artistic-license/"
177 "https://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
179 (define copyleft-next
180 (license "copyleft-next"
181 "https://raw.github.com/richardfontana/copyleft-next/master/Releases/copyleft-next-0.3.0"
182 "GPL-compatible copyleft license"))
186 "http://directory.fsf.org/wiki/License:CPLv1.0"
187 "https://www.gnu.org/licenses/license-list#CommonPublicLicense10"))
191 "http://directory.fsf.org/wiki/License:EPLv1.0"
192 "https://www.gnu.org/licenses/license-list#EPL"))
196 "http://directory.fsf.org/wiki/License:Expat"
197 "https://www.gnu.org/licenses/license-list.html#Expat"))
201 "http://directory.fsf.org/wiki/License:Freetype"
202 "https://www.gnu.org/licenses/license-list.html#freetype"))
206 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
211 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
216 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
217 "https://www.gnu.org/licenses/license-list#GPLv2"))
221 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
222 "https://www.gnu.org/licenses/license-list#GPLv2"))
226 "https://www.gnu.org/licenses/gpl.html"
227 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
231 "https://www.gnu.org/licenses/gpl.html"
232 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
234 ;; The “GUST font license” is legally equivalent to LPPL v1.3c as it only
235 ;; extends the LPPL with an optional request.
237 (license "GUST font license 1.0"
238 "http://www.gust.org.pl/projects/e-foundry/licenses/GUST-FONT-LICENSE.txt"
239 "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
243 "https://www.gnu.org/licenses/fdl.html"
244 "https://www.gnu.org/licenses/license-list#FDL"))
247 (license "Open Publication License 1.0 or later"
248 "http://opencontent.org/openpub/"
249 "https://www.gnu.org/licenses/license-list#OpenPublicationL"))
253 "http://directory.fsf.org/wiki/License:ISC"
254 "https://www.gnu.org/licenses/license-list.html#ISC"))
258 "http://directory.fsf.org/wiki/License:JPEG"
259 "https://www.gnu.org/licenses/license-list#ijg"))
263 "http://directory.fsf.org/wiki/License:IBMPLv1.0"
264 "https://www.gnu.org/licenses/license-list#IBMPL"))
268 "http://directory.fsf.org/wiki/License:Imlib2"
269 "https://www.gnu.org/licenses/license-list#imlib"))
272 (license "IPA Font License"
273 "http://directory.fsf.org/wiki/License:IPA_Font_License"
274 "https://www.gnu.org/licenses/license-list#IPAFONT"))
278 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
279 "https://www.gnu.org/licenses/why-not-lgpl.html"))
283 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
284 "https://www.gnu.org/licenses/why-not-lgpl.html"))
288 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
289 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
293 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
294 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
298 "https://www.gnu.org/licenses/lgpl.html"
299 "https://www.gnu.org/licenses/license-list#LGPLv3"))
303 "https://www.gnu.org/licenses/lgpl.html"
304 "https://www.gnu.org/licenses/license-list#LGPLv3"))
308 "http://www.mozilla.org/MPL/1.0/"
309 "https://www.gnu.org/licenses/license-list.html#MPL"))
313 "http://directory.fsf.org/wiki/License:MPLv1.1"
314 "https://www.gnu.org/licenses/license-list#MPL"))
318 "http://directory.fsf.org/wiki/License:MPLv2.0"
319 "https://www.gnu.org/licenses/license-list#MPL-2.0"))
322 (license "Ms-PL" ;Microsoft Public License
323 "http://directory.fsf.org/wiki/License:MsPL"
324 "http://www.gnu.org/licenses/license-list.html#ms-pl"))
327 (license "NCSA/University of Illinois Open Source License"
328 "http://directory.fsf.org/wiki/License:IllinoisNCSA"
329 "https://www.gnu.org/licenses/license-list#NCSA"))
333 "http://directory.fsf.org/wiki/License:OpenSSL"
334 "https://www.gnu.org/licenses/license-list#OpenSSL"))
337 (license "OpenLDAPv2.8"
338 "http://directory.fsf.org/wiki/License:OpenLDAPv2.8"
339 "https://www.gnu.org/licenses/license-list#newOpenLDAP"))
340 ;; lists OpenLDAPv2.7, which is virtually identical
343 (license "Python Software Foundation License"
344 "http://docs.python.org/license.html"
347 (define public-domain
348 (license "Public Domain"
349 "http://directory.fsf.org/wiki/License:PublicDomain"
350 "https://www.gnu.org/licenses/license-list#PublicDomain"))
354 "http://directory.fsf.org/wiki/License:QPLv1.0"
355 "http://www.gnu.org/licenses/license-list.html#QPL"))
358 (license "Ruby License"
359 "http://directory.fsf.org/wiki/License:Ruby"
360 "https://www.ruby-lang.org/en/about/license.txt"))
363 (license "SGI Free Software License B, version 2.0"
364 "http://directory.fsf.org/wiki/License:SGIFreeBv2"
365 "https://www.gnu.org/licenses/license-list.html#SGIFreeB"))
368 (license "SIL OFL 1.1"
369 "http://scripts.sil.org/OFL_web"
370 "https://www.gnu.org/licenses/license-list#SILOFL"))
374 "http://directory.fsf.org/wiki/License:Sleepycat"
375 "https://www.gnu.org/licenses/license-list#BerkeleyDB"))
379 "http://directory.fsf.org/wiki/License:Vim7.2"
380 "http://www.gnu.org/licenses/license-list.html#Vim"))
384 "http://directory.fsf.org/wiki/License:X11"
385 "https://www.gnu.org/licenses/license-list#X11License"))
387 (define* (x11-style uri #:optional (comment ""))
388 "Return an X11-style license, whose full text can be found at URI,
389 which may be a file:// URI pointing the package's tree."
393 "This is an X11-style, non-copyleft free software license. "
394 "Check the URI for details. "
398 (license "Zope Public License 2.1"
399 "http://directory.fsf.org/wiki?title=License:ZopePLv2.1"
400 "https://www.gnu.org/licenses/license-list.html#Zope2.0"))
404 "http://www.gzip.org/zlib/zlib_license.html"
405 "https://www.gnu.org/licenses/license-list#ZLib"))
407 (define* (fsf-free uri #:optional (comment ""))
408 "Return a license that does not fit any of the ones above or a collection
409 of licenses, approved as free by the FSF. More details can be found at URI."
414 ;;; licenses.scm ends here