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
35 gpl1 gpl1+ gpl2 gpl2+ gpl3 gpl3+
41 lgpl2.0 lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3 lgpl3+
53 (define-record-type <license>
54 (license name uri comment)
58 (comment license-comment))
62 ;;; Available licenses.
64 ;;; This list is based on these links:
65 ;;; https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix
66 ;;; https://www.gnu.org/licenses/license-list
72 "https://gnu.org/licenses/agpl.html"
73 "https://gnu.org/licenses/why-affero-gpl.html"))
77 "https://gnu.org/licenses/agpl.html"
78 "https://gnu.org/licenses/why-affero-gpl.html"))
82 "http://directory.fsf.org/wiki/License:Apache2.0"
83 "https://www.gnu.org/licenses/license-list#apache2"))
87 "http://directory.fsf.org/wiki/License:Boost1.0"
88 "https://www.gnu.org/licenses/license-list#boost"))
92 "http://directory.fsf.org/wiki/License:FreeBSD"
93 "https://www.gnu.org/licenses/license-list#FreeBSD"))
96 (license "Modified BSD"
97 "http://directory.fsf.org/wiki/License:BSD_3Clause"
98 "https://www.gnu.org/licenses/license-list#ModifiedBSD"))
101 (license "Original BSD"
102 "http://directory.fsf.org/wiki/License:BSD_4Clause"
103 "https://www.gnu.org/licenses/license-list#OriginalBSD"))
105 (define* (bsd-style uri #:optional (comment ""))
106 "Return a BSD-style license, whose full text can be found at URI,
107 which may be a file:// URI pointing the package's tree."
111 "This is a BSD-style, non-copyleft free software license. "
112 "Check the URI for details. "
117 "http://directory.fsf.org/wiki/License:CC0"
118 "http://www.gnu.org/licenses/license-list.html#CC0"))
122 "http://directory.fsf.org/wiki/License:CDDLv1.0"
123 "https://www.gnu.org/licenses/license-list#CDDL"))
127 "http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html"
128 "https://www.gnu.org/licenses/license-list.html#CeCILL"))
132 "http://directory.fsf.org/wiki/License:CPLv1.0"
133 "https://www.gnu.org/licenses/license-list#CommonPublicLicense10"))
137 "http://directory.fsf.org/wiki/License:EPLv1.0"
138 "https://www.gnu.org/licenses/license-list#EPL"))
142 "http://directory.fsf.org/wiki/License:Expat"
143 "https://www.gnu.org/licenses/license-list.html#Expat"))
147 "http://directory.fsf.org/wiki/License:Freetype"
148 "https://www.gnu.org/licenses/license-list.html#freetype"))
152 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
157 "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
162 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
163 "https://www.gnu.org/licenses/license-list#GPLv2"))
167 "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
168 "https://www.gnu.org/licenses/license-list#GPLv2"))
172 "https://www.gnu.org/licenses/gpl.html"
173 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
177 "https://www.gnu.org/licenses/gpl.html"
178 "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
182 "https://www.gnu.org/licenses/fdl.html"
183 "https://www.gnu.org/licenses/license-list#FDL"))
187 "http://directory.fsf.org/wiki/License:ISC"
188 "https://www.gnu.org/licenses/license-list.html#ISC"))
192 "http://directory.fsf.org/wiki/License:JPEG"
193 "https://www.gnu.org/licenses/license-list#ijg"))
197 "http://directory.fsf.org/wiki/License:IBMPLv1.0"
198 "https://www.gnu.org/licenses/license-list#IBMPL"))
202 "http://directory.fsf.org/wiki/License:Imlib2"
203 "https://www.gnu.org/licenses/license-list#imlib"))
207 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
208 "https://www.gnu.org/licenses/why-not-lgpl.html"))
212 "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
213 "https://www.gnu.org/licenses/why-not-lgpl.html"))
217 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
218 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
222 "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
223 "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
227 "https://www.gnu.org/licenses/lgpl.html"
228 "https://www.gnu.org/licenses/license-list#LGPLv3"))
232 "https://www.gnu.org/licenses/lgpl.html"
233 "https://www.gnu.org/licenses/license-list#LGPLv3"))
237 "http://directory.fsf.org/wiki/License:MPLv2.0"
238 "https://www.gnu.org/licenses/license-list#MPL-2.0"))
242 "http://directory.fsf.org/wiki/License:OpenSSL"
243 "https://www.gnu.org/licenses/license-list#OpenSSL"))
246 (license "OpenLDAPv2.8"
247 "http://directory.fsf.org/wiki/License:OpenLDAPv2.8"
248 "https://www.gnu.org/licenses/license-list#newOpenLDAP"))
249 ;; lists OpenLDAPv2.7, which is virtually identical
252 (license "Python Software Foundation License"
253 "http://docs.python.org/license.html"
256 (define public-domain
257 (license "Public Domain"
258 "http://directory.fsf.org/wiki/License:PublicDomain"
259 "https://www.gnu.org/licenses/license-list#PublicDomain"))
263 "http://directory.fsf.org/wiki/License:QPLv1.0"
264 "http://www.gnu.org/licenses/license-list.html#QPL"))
267 (license "Ruby License"
268 "http://directory.fsf.org/wiki/License:Ruby"
269 "https://www.ruby-lang.org/en/about/license.txt"))
272 (license "SIL OFL 1.1"
273 "http://scripts.sil.org/OFL_web"
274 "https://www.gnu.org/licenses/license-list#SILOFL"))
278 "http://directory.fsf.org/wiki/License:Vim7.2"
279 "http://www.gnu.org/licenses/license-list.html#Vim"))
283 "http://directory.fsf.org/wiki/License:X11"
284 "https://www.gnu.org/licenses/license-list#X11License"))
286 (define* (x11-style uri #:optional (comment ""))
287 "Return an X11-style license, whose full text can be found at URI,
288 which may be a file:// URI pointing the package's tree."
292 "This is an X11-style, non-copyleft free software license. "
293 "Check the URI for details. "
298 "http://www.gzip.org/zlib/zlib_license.html"
299 "https://www.gnu.org/licenses/license-list#ZLib"))
301 (define* (fsf-free uri #:optional (comment ""))
302 "Return a license that does not fit any of the ones above or a collection
303 of licenses, approved as free by the FSF. More details can be found at URI."
308 ;;; licenses.scm ends here