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>
7 ;;; This file is part of GNU Guix.
9 ;;; GNU Guix is free software; you can redistribute it and/or modify it
10 ;;; under the terms of the GNU General Public License as published by
11 ;;; the Free Software Foundation; either version 3 of the License, or (at
12 ;;; your option) any later version.
14 ;;; GNU Guix is distributed in the hope that it will be useful, but
15 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;;; GNU General Public License for more details.
19 ;;; You should have received a copy of the GNU General Public License
20 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22 (define-module (guix licenses)
23 #:use-module (srfi srfi-9)
24 #:export (license? license-name license-uri license-comment
30 bsd-style ;deprecated!
34 artistic2.0 clarified-artistic
40 gpl1 gpl1+ gpl2 gpl2+ gpl3 gpl3+
48 lgpl2.0 lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3 lgpl3+
63 (define-record-type <license>
64 (license name uri comment)
68 (comment license-comment))
72 ;;; Available licenses.
74 ;;; This list is based on these links:
75 ;;; https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix
76 ;;; https://www.gnu.org/licenses/license-list
82 "https://gnu.org/licenses/agpl.html"
83 "https://gnu.org/licenses/why-affero-gpl.html"))
87 "https://gnu.org/licenses/agpl.html"
88 "https://gnu.org/licenses/why-affero-gpl.html"))
92 "http://directory.fsf.org/wiki/License:Apache2.0"
93 "https://www.gnu.org/licenses/license-list#apache2"))
97 "http://directory.fsf.org/wiki/License:Boost1.0"
98 "https://www.gnu.org/licenses/license-list#boost"))
102 "http://directory.fsf.org/wiki/License:FreeBSD"
103 "https://www.gnu.org/licenses/license-list#FreeBSD"))
106 (license "Modified BSD"
107 "http://directory.fsf.org/wiki/License:BSD_3Clause"
108 "https://www.gnu.org/licenses/license-list#ModifiedBSD"))
111 (license "Original BSD"
112 "http://directory.fsf.org/wiki/License:BSD_4Clause"
113 "https://www.gnu.org/licenses/license-list#OriginalBSD"))
115 (define* (non-copyleft uri #:optional (comment ""))
116 "Return a lax, permissive, non-copyleft license (for example a variant of
117 the 3-clause BSD license or the Expat license), whose full text can be found
118 at URI, which may be a file:// URI pointing the package's tree."
119 (license "non-copyleft"
122 "This is a lax, non-copyleft free software license. "
123 "Check the URI for details. "
127 ;; This alias is kept for backward-compatibility. Do not use it for new
128 ;; packages: it is ambiguous, as rightfully explained at
129 ;; <http://www.gnu.org/philosophy/words-to-avoid.html#BSD-style>.
134 "http://directory.fsf.org/wiki/License:CC0"
135 "http://www.gnu.org/licenses/license-list.html#CC0"))
139 "http://directory.fsf.org/wiki/License:CDDLv1.0"
140 "https://www.gnu.org/licenses/license-list#CDDL"))
144 "http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html"
145 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
148 (license "Artistic License 2.0"
149 "http://www.perlfoundation.org/artistic_license_2_0"
150 "http://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
152 (define clarified-artistic
153 (license "Clarified Artistic"
154 ;; http://directory.fsf.org/wiki/User:Jgay/license-categorization#Clarified_Artistic_License
155 "http://gianluca.dellavedova.org/2011/01/03/clarified-artistic-license/"
156 "https://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
158 (define copyleft-next
159 (license "copyleft-next"
160 "https://raw.github.com/richardfontana/copyleft-next/master/Releases/copyleft-next-0.3.0"
161 "GPL-compatible copyleft license"))
165 "http://directory.fsf.org/wiki/License:CPLv1.0"
166 "https://www.gnu.org/licenses/license-list#CommonPublicLicense10"))
170 "http://directory.fsf.org/wiki/License:EPLv1.0"
171 "https://www.gnu.org/licenses/license-list#EPL"))
175 "http://directory.fsf.org/wiki/License:Expat"
176 "https://www.gnu.org/licenses/license-list.html#Expat"))
180 "http://directory.fsf.org/wiki/License:Freetype"
181 "https://www.gnu.org/licenses/license-list.html#freetype"))
185 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
190 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
195 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
196 "https://www.gnu.org/licenses/license-list#GPLv2"))
200 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
201 "https://www.gnu.org/licenses/license-list#GPLv2"))
205 "https://www.gnu.org/licenses/gpl.html"
206 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
210 "https://www.gnu.org/licenses/gpl.html"
211 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
215 "https://www.gnu.org/licenses/fdl.html"
216 "https://www.gnu.org/licenses/license-list#FDL"))
219 (license "Open Publication License 1.0 or later"
220 "http://opencontent.org/openpub/"
221 "https://www.gnu.org/licenses/license-list#OpenPublicationL"))
225 "http://directory.fsf.org/wiki/License:ISC"
226 "https://www.gnu.org/licenses/license-list.html#ISC"))
230 "http://directory.fsf.org/wiki/License:JPEG"
231 "https://www.gnu.org/licenses/license-list#ijg"))
235 "http://directory.fsf.org/wiki/License:IBMPLv1.0"
236 "https://www.gnu.org/licenses/license-list#IBMPL"))
240 "http://directory.fsf.org/wiki/License:Imlib2"
241 "https://www.gnu.org/licenses/license-list#imlib"))
244 (license "IPA Font License"
245 "http://directory.fsf.org/wiki/License:IPA_Font_License"
246 "https://www.gnu.org/licenses/license-list#IPAFONT"))
250 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
251 "https://www.gnu.org/licenses/why-not-lgpl.html"))
255 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
256 "https://www.gnu.org/licenses/why-not-lgpl.html"))
260 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
261 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
265 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
266 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
270 "https://www.gnu.org/licenses/lgpl.html"
271 "https://www.gnu.org/licenses/license-list#LGPLv3"))
275 "https://www.gnu.org/licenses/lgpl.html"
276 "https://www.gnu.org/licenses/license-list#LGPLv3"))
280 "http://directory.fsf.org/wiki/License:MPLv1.1"
281 "https://www.gnu.org/licenses/license-list#MPL"))
285 "http://directory.fsf.org/wiki/License:MPLv2.0"
286 "https://www.gnu.org/licenses/license-list#MPL-2.0"))
289 (license "Ms-PL" ;Microsoft Public License
290 "http://directory.fsf.org/wiki/License:MsPL"
291 "http://www.gnu.org/licenses/license-list.html#ms-pl"))
294 (license "NCSA/University of Illinois Open Source License"
295 "http://directory.fsf.org/wiki/License:IllinoisNCSA"
296 "https://www.gnu.org/licenses/license-list#NCSA"))
300 "http://directory.fsf.org/wiki/License:OpenSSL"
301 "https://www.gnu.org/licenses/license-list#OpenSSL"))
304 (license "OpenLDAPv2.8"
305 "http://directory.fsf.org/wiki/License:OpenLDAPv2.8"
306 "https://www.gnu.org/licenses/license-list#newOpenLDAP"))
307 ;; lists OpenLDAPv2.7, which is virtually identical
310 (license "Python Software Foundation License"
311 "http://docs.python.org/license.html"
314 (define public-domain
315 (license "Public Domain"
316 "http://directory.fsf.org/wiki/License:PublicDomain"
317 "https://www.gnu.org/licenses/license-list#PublicDomain"))
321 "http://directory.fsf.org/wiki/License:QPLv1.0"
322 "http://www.gnu.org/licenses/license-list.html#QPL"))
325 (license "Ruby License"
326 "http://directory.fsf.org/wiki/License:Ruby"
327 "https://www.ruby-lang.org/en/about/license.txt"))
330 (license "SGI Free Software License B, version 2.0"
331 "http://directory.fsf.org/wiki/License:SGIFreeBv2"
332 "https://www.gnu.org/licenses/license-list.html#SGIFreeB"))
335 (license "SIL OFL 1.1"
336 "http://scripts.sil.org/OFL_web"
337 "https://www.gnu.org/licenses/license-list#SILOFL"))
341 "http://directory.fsf.org/wiki/License:Vim7.2"
342 "http://www.gnu.org/licenses/license-list.html#Vim"))
346 "http://directory.fsf.org/wiki/License:X11"
347 "https://www.gnu.org/licenses/license-list#X11License"))
349 (define* (x11-style uri #:optional (comment ""))
350 "Return an X11-style license, whose full text can be found at URI,
351 which may be a file:// URI pointing the package's tree."
355 "This is an X11-style, non-copyleft free software license. "
356 "Check the URI for details. "
361 "http://www.gzip.org/zlib/zlib_license.html"
362 "https://www.gnu.org/licenses/license-list#ZLib"))
364 (define* (fsf-free uri #:optional (comment ""))
365 "Return a license that does not fit any of the ones above or a collection
366 of licenses, approved as free by the FSF. More details can be found at URI."
371 ;;; licenses.scm ends here