1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2014 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
4 ;;; Copyright © 2012, 2013 Nikita Karetnikov <nikita@karetnikov.org>
6 ;;; This file is part of GNU Guix.
8 ;;; GNU Guix is free software; you can redistribute it and/or modify it
9 ;;; under the terms of the GNU General Public License as published by
10 ;;; the Free Software Foundation; either version 3 of the License, or (at
11 ;;; your option) any later version.
13 ;;; GNU Guix is distributed in the hope that it will be useful, but
14 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ;;; GNU General Public License for more details.
18 ;;; You should have received a copy of the GNU General Public License
19 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
21 (define-module (guix licenses)
22 #:use-module (srfi srfi-9)
23 #:export (license? license-name license-uri license-comment
27 bsd-2 bsd-3 bsd-4 bsd-style
36 gpl1 gpl1+ gpl2 gpl2+ gpl3 gpl3+
42 lgpl2.0 lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3 lgpl3+
54 (define-record-type <license>
55 (license name uri comment)
59 (comment license-comment))
63 ;;; Available licenses.
65 ;;; This list is based on these links:
66 ;;; https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix
67 ;;; https://www.gnu.org/licenses/license-list
73 "https://gnu.org/licenses/agpl.html"
74 "https://gnu.org/licenses/why-affero-gpl.html"))
78 "https://gnu.org/licenses/agpl.html"
79 "https://gnu.org/licenses/why-affero-gpl.html"))
83 "http://directory.fsf.org/wiki/License:Apache2.0"
84 "https://www.gnu.org/licenses/license-list#apache2"))
88 "http://directory.fsf.org/wiki/License:Boost1.0"
89 "https://www.gnu.org/licenses/license-list#boost"))
93 "http://directory.fsf.org/wiki/License:FreeBSD"
94 "https://www.gnu.org/licenses/license-list#FreeBSD"))
97 (license "Modified BSD"
98 "http://directory.fsf.org/wiki/License:BSD_3Clause"
99 "https://www.gnu.org/licenses/license-list#ModifiedBSD"))
102 (license "Original BSD"
103 "http://directory.fsf.org/wiki/License:BSD_4Clause"
104 "https://www.gnu.org/licenses/license-list#OriginalBSD"))
106 (define* (bsd-style uri #:optional (comment ""))
107 "Return a BSD-style license, whose full text can be found at URI,
108 which may be a file:// URI pointing the package's tree."
112 "This is a BSD-style, non-copyleft free software license. "
113 "Check the URI for details. "
118 "http://directory.fsf.org/wiki/License:CC0"
119 "http://www.gnu.org/licenses/license-list.html#CC0"))
123 "http://directory.fsf.org/wiki/License:CDDLv1.0"
124 "https://www.gnu.org/licenses/license-list#CDDL"))
128 "http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html"
129 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
131 (define clarified-artistic
132 (license "Clarified Artistic"
133 ;; http://directory.fsf.org/wiki/User:Jgay/license-categorization#Clarified_Artistic_License
134 "http://gianluca.dellavedova.org/2011/01/03/clarified-artistic-license/"
135 "https://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
139 "http://directory.fsf.org/wiki/License:CPLv1.0"
140 "https://www.gnu.org/licenses/license-list#CommonPublicLicense10"))
144 "http://directory.fsf.org/wiki/License:EPLv1.0"
145 "https://www.gnu.org/licenses/license-list#EPL"))
149 "http://directory.fsf.org/wiki/License:Expat"
150 "https://www.gnu.org/licenses/license-list.html#Expat"))
154 "http://directory.fsf.org/wiki/License:Freetype"
155 "https://www.gnu.org/licenses/license-list.html#freetype"))
159 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
164 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
169 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
170 "https://www.gnu.org/licenses/license-list#GPLv2"))
174 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
175 "https://www.gnu.org/licenses/license-list#GPLv2"))
179 "https://www.gnu.org/licenses/gpl.html"
180 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
184 "https://www.gnu.org/licenses/gpl.html"
185 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
189 "https://www.gnu.org/licenses/fdl.html"
190 "https://www.gnu.org/licenses/license-list#FDL"))
194 "http://directory.fsf.org/wiki/License:ISC"
195 "https://www.gnu.org/licenses/license-list.html#ISC"))
199 "http://directory.fsf.org/wiki/License:JPEG"
200 "https://www.gnu.org/licenses/license-list#ijg"))
204 "http://directory.fsf.org/wiki/License:IBMPLv1.0"
205 "https://www.gnu.org/licenses/license-list#IBMPL"))
209 "http://directory.fsf.org/wiki/License:Imlib2"
210 "https://www.gnu.org/licenses/license-list#imlib"))
214 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
215 "https://www.gnu.org/licenses/why-not-lgpl.html"))
219 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
220 "https://www.gnu.org/licenses/why-not-lgpl.html"))
224 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
225 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
229 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
230 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
234 "https://www.gnu.org/licenses/lgpl.html"
235 "https://www.gnu.org/licenses/license-list#LGPLv3"))
239 "https://www.gnu.org/licenses/lgpl.html"
240 "https://www.gnu.org/licenses/license-list#LGPLv3"))
244 "http://directory.fsf.org/wiki/License:MPLv2.0"
245 "https://www.gnu.org/licenses/license-list#MPL-2.0"))
249 "http://directory.fsf.org/wiki/License:OpenSSL"
250 "https://www.gnu.org/licenses/license-list#OpenSSL"))
253 (license "OpenLDAPv2.8"
254 "http://directory.fsf.org/wiki/License:OpenLDAPv2.8"
255 "https://www.gnu.org/licenses/license-list#newOpenLDAP"))
256 ;; lists OpenLDAPv2.7, which is virtually identical
259 (license "Python Software Foundation License"
260 "http://docs.python.org/license.html"
263 (define public-domain
264 (license "Public Domain"
265 "http://directory.fsf.org/wiki/License:PublicDomain"
266 "https://www.gnu.org/licenses/license-list#PublicDomain"))
270 "http://directory.fsf.org/wiki/License:QPLv1.0"
271 "http://www.gnu.org/licenses/license-list.html#QPL"))
274 (license "Ruby License"
275 "http://directory.fsf.org/wiki/License:Ruby"
276 "https://www.ruby-lang.org/en/about/license.txt"))
279 (license "SIL OFL 1.1"
280 "http://scripts.sil.org/OFL_web"
281 "https://www.gnu.org/licenses/license-list#SILOFL"))
285 "http://directory.fsf.org/wiki/License:Vim7.2"
286 "http://www.gnu.org/licenses/license-list.html#Vim"))
290 "http://directory.fsf.org/wiki/License:X11"
291 "https://www.gnu.org/licenses/license-list#X11License"))
293 (define* (x11-style uri #:optional (comment ""))
294 "Return an X11-style license, whose full text can be found at URI,
295 which may be a file:// URI pointing the package's tree."
299 "This is an X11-style, non-copyleft free software license. "
300 "Check the URI for details. "
305 "http://www.gzip.org/zlib/zlib_license.html"
306 "https://www.gnu.org/licenses/license-list#ZLib"))
308 (define* (fsf-free uri #:optional (comment ""))
309 "Return a license that does not fit any of the ones above or a collection
310 of licenses, approved as free by the FSF. More details can be found at URI."
315 ;;; licenses.scm ends here