2013-01-06 00:47:50 +01:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2015-03-14 19:25:00 +01:00
|
|
|
;;; Copyright © 2012, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
|
2015-02-24 16:09:30 +01:00
|
|
|
;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
|
2013-01-14 23:00:54 +01:00
|
|
|
;;; Copyright © 2012, 2013 Nikita Karetnikov <nikita@karetnikov.org>
|
2015-06-17 08:28:43 +02:00
|
|
|
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
|
2012-12-08 02:48:17 +01:00
|
|
|
;;;
|
2013-01-06 00:47:50 +01:00
|
|
|
;;; This file is part of GNU Guix.
|
2012-12-08 02:48:17 +01:00
|
|
|
;;;
|
2013-01-06 00:47:50 +01:00
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
2012-12-08 02:48:17 +01:00
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
2013-01-06 00:47:50 +01:00
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
2012-12-08 02:48:17 +01:00
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
2013-01-06 00:47:50 +01:00
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
2012-12-08 02:48:17 +01:00
|
|
|
|
|
|
|
(define-module (guix licenses)
|
|
|
|
#:use-module (srfi srfi-9)
|
|
|
|
#:export (license? license-name license-uri license-comment
|
2013-05-14 20:57:42 +02:00
|
|
|
agpl3 agpl3+
|
2012-12-08 02:48:17 +01:00
|
|
|
asl2.0
|
|
|
|
boost1.0
|
2015-03-14 19:25:00 +01:00
|
|
|
bsd-2 bsd-3 bsd-4
|
|
|
|
non-copyleft
|
|
|
|
bsd-style ;deprecated!
|
2014-06-30 18:24:29 +02:00
|
|
|
cc0
|
2012-12-08 02:48:17 +01:00
|
|
|
cddl1.0
|
2014-05-19 06:49:07 +02:00
|
|
|
cecill-c
|
2015-01-28 05:43:21 +01:00
|
|
|
artistic2.0 clarified-artistic
|
2015-07-17 12:13:31 +02:00
|
|
|
copyleft-next
|
2012-12-08 02:48:17 +01:00
|
|
|
cpl1.0
|
|
|
|
epl1.0
|
2012-12-12 06:41:53 +01:00
|
|
|
expat
|
2013-01-19 12:28:55 +01:00
|
|
|
freetype
|
2012-12-12 06:41:53 +01:00
|
|
|
gpl1 gpl1+ gpl2 gpl2+ gpl3 gpl3+
|
2014-01-22 00:20:40 +01:00
|
|
|
fdl1.3+
|
2015-06-03 07:18:26 +02:00
|
|
|
opl1.0+
|
2013-02-11 03:32:51 +01:00
|
|
|
isc
|
2012-12-08 02:48:17 +01:00
|
|
|
ijg
|
|
|
|
ibmpl1.0
|
2014-10-26 13:27:56 +01:00
|
|
|
imlib2
|
2015-02-24 16:09:30 +01:00
|
|
|
ipa
|
2012-12-12 06:41:53 +01:00
|
|
|
lgpl2.0 lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3 lgpl3+
|
2014-11-25 14:56:28 +01:00
|
|
|
mpl1.1 mpl2.0
|
2015-03-17 18:12:47 +01:00
|
|
|
ms-pl
|
2014-12-07 22:11:28 +01:00
|
|
|
ncsa
|
2013-01-13 19:09:48 +01:00
|
|
|
openldap2.8 openssl
|
2013-01-14 23:00:54 +01:00
|
|
|
psfl public-domain
|
2013-01-23 21:16:22 +01:00
|
|
|
qpl
|
2014-09-27 14:56:44 +02:00
|
|
|
ruby
|
2015-06-17 08:28:43 +02:00
|
|
|
sgifreeb2.0
|
2014-10-28 07:38:04 +01:00
|
|
|
silofl1.1
|
2013-01-18 22:48:28 +01:00
|
|
|
vim
|
2013-03-04 02:08:24 +01:00
|
|
|
x11 x11-style
|
2013-02-05 23:01:14 +01:00
|
|
|
zlib
|
|
|
|
fsf-free))
|
2012-12-08 02:48:17 +01:00
|
|
|
|
|
|
|
(define-record-type <license>
|
|
|
|
(license name uri comment)
|
|
|
|
license?
|
|
|
|
(name license-name)
|
|
|
|
(uri license-uri)
|
|
|
|
(comment license-comment))
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
;;;
|
|
|
|
;;; Available licenses.
|
|
|
|
;;;
|
|
|
|
;;; This list is based on these links:
|
2014-03-20 16:15:26 +01:00
|
|
|
;;; https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix
|
2012-12-08 02:48:17 +01:00
|
|
|
;;; https://www.gnu.org/licenses/license-list
|
|
|
|
;;;
|
|
|
|
;;; Code:
|
|
|
|
|
2013-05-14 20:57:42 +02:00
|
|
|
(define agpl3
|
|
|
|
(license "AGPL 3"
|
|
|
|
"https://gnu.org/licenses/agpl.html"
|
|
|
|
"https://gnu.org/licenses/why-affero-gpl.html"))
|
|
|
|
|
|
|
|
(define agpl3+
|
|
|
|
(license "AGPL 3+"
|
|
|
|
"https://gnu.org/licenses/agpl.html"
|
|
|
|
"https://gnu.org/licenses/why-affero-gpl.html"))
|
|
|
|
|
2012-12-08 02:48:17 +01:00
|
|
|
(define asl2.0
|
|
|
|
(license "ASL 2.0"
|
|
|
|
"http://directory.fsf.org/wiki/License:Apache2.0"
|
|
|
|
"https://www.gnu.org/licenses/license-list#apache2"))
|
|
|
|
|
|
|
|
(define boost1.0
|
|
|
|
(license "Boost 1.0"
|
|
|
|
"http://directory.fsf.org/wiki/License:Boost1.0"
|
|
|
|
"https://www.gnu.org/licenses/license-list#boost"))
|
|
|
|
|
|
|
|
(define bsd-2
|
|
|
|
(license "FreeBSD"
|
|
|
|
"http://directory.fsf.org/wiki/License:FreeBSD"
|
|
|
|
"https://www.gnu.org/licenses/license-list#FreeBSD"))
|
|
|
|
|
|
|
|
(define bsd-3
|
|
|
|
(license "Modified BSD"
|
|
|
|
"http://directory.fsf.org/wiki/License:BSD_3Clause"
|
|
|
|
"https://www.gnu.org/licenses/license-list#ModifiedBSD"))
|
|
|
|
|
|
|
|
(define bsd-4
|
|
|
|
(license "Original BSD"
|
|
|
|
"http://directory.fsf.org/wiki/License:BSD_4Clause"
|
|
|
|
"https://www.gnu.org/licenses/license-list#OriginalBSD"))
|
|
|
|
|
2015-03-14 19:25:00 +01:00
|
|
|
(define* (non-copyleft uri #:optional (comment ""))
|
|
|
|
"Return a lax, permissive, non-copyleft license (for example a variant of
|
|
|
|
the 3-clause BSD license or the Expat license), whose full text can be found
|
|
|
|
at URI, which may be a file:// URI pointing the package's tree."
|
|
|
|
(license "non-copyleft"
|
2012-12-12 06:41:53 +01:00
|
|
|
uri
|
|
|
|
(string-append
|
2015-03-14 19:25:00 +01:00
|
|
|
"This is a lax, non-copyleft free software license. "
|
2012-12-12 06:41:53 +01:00
|
|
|
"Check the URI for details. "
|
|
|
|
comment)))
|
|
|
|
|
2015-03-14 19:25:00 +01:00
|
|
|
(define bsd-style
|
|
|
|
;; This alias is kept for backward-compatibility. Do not use it for new
|
|
|
|
;; packages: it is ambiguous, as rightfully explained at
|
|
|
|
;; <http://www.gnu.org/philosophy/words-to-avoid.html#BSD-style>.
|
|
|
|
non-copyleft)
|
|
|
|
|
2014-06-30 18:24:29 +02:00
|
|
|
(define cc0
|
|
|
|
(license "CC0"
|
|
|
|
"http://directory.fsf.org/wiki/License:CC0"
|
|
|
|
"http://www.gnu.org/licenses/license-list.html#CC0"))
|
|
|
|
|
2012-12-08 02:48:17 +01:00
|
|
|
(define cddl1.0
|
|
|
|
(license "CDDL 1.0"
|
|
|
|
"http://directory.fsf.org/wiki/License:CDDLv1.0"
|
|
|
|
"https://www.gnu.org/licenses/license-list#CDDL"))
|
|
|
|
|
2014-05-19 06:49:07 +02:00
|
|
|
(define cecill-c
|
|
|
|
(license "CeCILL-C"
|
|
|
|
"http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html"
|
|
|
|
"https://www.gnu.org/licenses/license-list.html#CeCILL"))
|
|
|
|
|
2015-01-28 05:43:21 +01:00
|
|
|
(define artistic2.0
|
|
|
|
(license "Artistic License 2.0"
|
|
|
|
"http://www.perlfoundation.org/artistic_license_2_0"
|
|
|
|
"http://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
|
|
|
|
|
2014-11-19 17:37:09 +01:00
|
|
|
(define clarified-artistic
|
|
|
|
(license "Clarified Artistic"
|
|
|
|
;; http://directory.fsf.org/wiki/User:Jgay/license-categorization#Clarified_Artistic_License
|
|
|
|
"http://gianluca.dellavedova.org/2011/01/03/clarified-artistic-license/"
|
|
|
|
"https://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
|
|
|
|
|
2015-07-17 12:13:31 +02:00
|
|
|
(define copyleft-next
|
|
|
|
(license "copyleft-next"
|
|
|
|
"https://raw.github.com/richardfontana/copyleft-next/master/Releases/copyleft-next-0.3.0"
|
|
|
|
"GPL-compatible copyleft license"))
|
|
|
|
|
2012-12-08 02:48:17 +01:00
|
|
|
(define cpl1.0
|
|
|
|
(license "CPL 1.0"
|
|
|
|
"http://directory.fsf.org/wiki/License:CPLv1.0"
|
|
|
|
"https://www.gnu.org/licenses/license-list#CommonPublicLicense10"))
|
|
|
|
|
|
|
|
(define epl1.0
|
|
|
|
(license "EPL 1.0"
|
|
|
|
"http://directory.fsf.org/wiki/License:EPLv1.0"
|
|
|
|
"https://www.gnu.org/licenses/license-list#EPL"))
|
|
|
|
|
2012-12-12 06:41:53 +01:00
|
|
|
(define expat
|
|
|
|
(license "Expat"
|
|
|
|
"http://directory.fsf.org/wiki/License:Expat"
|
|
|
|
"https://www.gnu.org/licenses/license-list.html#Expat"))
|
|
|
|
|
2013-01-19 12:28:55 +01:00
|
|
|
(define freetype
|
|
|
|
(license "Freetype"
|
|
|
|
"http://directory.fsf.org/wiki/License:Freetype"
|
|
|
|
"https://www.gnu.org/licenses/license-list.html#freetype"))
|
|
|
|
|
2012-12-12 06:41:53 +01:00
|
|
|
(define gpl1
|
|
|
|
(license "GPL 1"
|
|
|
|
"https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
|
|
|
|
#f))
|
|
|
|
|
|
|
|
(define gpl1+
|
|
|
|
(license "GPL 1+"
|
|
|
|
"https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
|
|
|
|
#f))
|
|
|
|
|
2012-12-08 02:48:17 +01:00
|
|
|
(define gpl2
|
|
|
|
(license "GPL 2"
|
|
|
|
"https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
|
|
|
|
"https://www.gnu.org/licenses/license-list#GPLv2"))
|
|
|
|
|
|
|
|
(define gpl2+
|
|
|
|
(license "GPL 2+"
|
|
|
|
"https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
|
|
|
|
"https://www.gnu.org/licenses/license-list#GPLv2"))
|
|
|
|
|
|
|
|
(define gpl3
|
|
|
|
(license "GPL 3"
|
|
|
|
"https://www.gnu.org/licenses/gpl.html"
|
|
|
|
"https://www.gnu.org/licenses/license-list#GNUGPLv3"))
|
|
|
|
|
|
|
|
(define gpl3+
|
|
|
|
(license "GPL 3+"
|
|
|
|
"https://www.gnu.org/licenses/gpl.html"
|
|
|
|
"https://www.gnu.org/licenses/license-list#GNUGPLv3"))
|
|
|
|
|
2014-01-22 00:20:40 +01:00
|
|
|
(define fdl1.3+
|
|
|
|
(license "FDL 1.3+"
|
|
|
|
"https://www.gnu.org/licenses/fdl.html"
|
|
|
|
"https://www.gnu.org/licenses/license-list#FDL"))
|
|
|
|
|
2015-06-03 07:18:26 +02:00
|
|
|
(define opl1.0+
|
|
|
|
(license "Open Publication License 1.0 or later"
|
|
|
|
"http://opencontent.org/openpub/"
|
|
|
|
"https://www.gnu.org/licenses/license-list#OpenPublicationL"))
|
|
|
|
|
2013-02-11 03:32:51 +01:00
|
|
|
(define isc
|
|
|
|
(license "ISC"
|
|
|
|
"http://directory.fsf.org/wiki/License:ISC"
|
|
|
|
"https://www.gnu.org/licenses/license-list.html#ISC"))
|
|
|
|
|
2012-12-08 02:48:17 +01:00
|
|
|
(define ijg
|
|
|
|
(license "IJG"
|
|
|
|
"http://directory.fsf.org/wiki/License:JPEG"
|
|
|
|
"https://www.gnu.org/licenses/license-list#ijg"))
|
|
|
|
|
|
|
|
(define ibmpl1.0
|
|
|
|
(license "IBMPL 1.0"
|
|
|
|
"http://directory.fsf.org/wiki/License:IBMPLv1.0"
|
|
|
|
"https://www.gnu.org/licenses/license-list#IBMPL"))
|
|
|
|
|
2014-10-26 13:27:56 +01:00
|
|
|
(define imlib2
|
|
|
|
(license "Imlib2"
|
|
|
|
"http://directory.fsf.org/wiki/License:Imlib2"
|
|
|
|
"https://www.gnu.org/licenses/license-list#imlib"))
|
|
|
|
|
2015-02-24 16:09:30 +01:00
|
|
|
(define ipa
|
|
|
|
(license "IPA Font License"
|
|
|
|
"http://directory.fsf.org/wiki/License:IPA_Font_License"
|
|
|
|
"https://www.gnu.org/licenses/license-list#IPAFONT"))
|
|
|
|
|
2012-12-12 06:41:53 +01:00
|
|
|
(define lgpl2.0
|
|
|
|
(license "LGPL 2.0"
|
|
|
|
"https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
|
|
|
|
"https://www.gnu.org/licenses/why-not-lgpl.html"))
|
|
|
|
|
|
|
|
(define lgpl2.0+
|
|
|
|
(license "LGPL 2.0+"
|
|
|
|
"https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
|
|
|
|
"https://www.gnu.org/licenses/why-not-lgpl.html"))
|
|
|
|
|
2012-12-08 02:48:17 +01:00
|
|
|
(define lgpl2.1
|
|
|
|
(license "LGPL 2.1"
|
|
|
|
"https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
|
|
|
|
"https://www.gnu.org/licenses/license-list#LGPLv2.1"))
|
|
|
|
|
|
|
|
(define lgpl2.1+
|
|
|
|
(license "LGPL 2.1+"
|
|
|
|
"https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
|
|
|
|
"https://www.gnu.org/licenses/license-list#LGPLv2.1"))
|
|
|
|
|
|
|
|
(define lgpl3
|
|
|
|
(license "LGPL 3"
|
|
|
|
"https://www.gnu.org/licenses/lgpl.html"
|
|
|
|
"https://www.gnu.org/licenses/license-list#LGPLv3"))
|
|
|
|
|
|
|
|
(define lgpl3+
|
|
|
|
(license "LGPL 3+"
|
|
|
|
"https://www.gnu.org/licenses/lgpl.html"
|
|
|
|
"https://www.gnu.org/licenses/license-list#LGPLv3"))
|
|
|
|
|
2014-11-25 14:56:28 +01:00
|
|
|
(define mpl1.1
|
|
|
|
(license "MPL 1.1"
|
|
|
|
"http://directory.fsf.org/wiki/License:MPLv1.1"
|
|
|
|
"https://www.gnu.org/licenses/license-list#MPL"))
|
|
|
|
|
2012-12-08 02:48:17 +01:00
|
|
|
(define mpl2.0
|
|
|
|
(license "MPL 2.0"
|
|
|
|
"http://directory.fsf.org/wiki/License:MPLv2.0"
|
|
|
|
"https://www.gnu.org/licenses/license-list#MPL-2.0"))
|
|
|
|
|
2015-03-17 18:12:47 +01:00
|
|
|
(define ms-pl
|
|
|
|
(license "Ms-PL" ;Microsoft Public License
|
|
|
|
"http://directory.fsf.org/wiki/License:MsPL"
|
|
|
|
"http://www.gnu.org/licenses/license-list.html#ms-pl"))
|
|
|
|
|
2014-12-07 22:11:28 +01:00
|
|
|
(define ncsa
|
|
|
|
(license "NCSA/University of Illinois Open Source License"
|
|
|
|
"http://directory.fsf.org/wiki/License:IllinoisNCSA"
|
|
|
|
"https://www.gnu.org/licenses/license-list#NCSA"))
|
|
|
|
|
2012-12-08 02:48:17 +01:00
|
|
|
(define openssl
|
|
|
|
(license "OpenSSL"
|
|
|
|
"http://directory.fsf.org/wiki/License:OpenSSL"
|
|
|
|
"https://www.gnu.org/licenses/license-list#OpenSSL"))
|
|
|
|
|
2013-01-13 19:09:48 +01:00
|
|
|
(define openldap2.8
|
|
|
|
(license "OpenLDAPv2.8"
|
|
|
|
"http://directory.fsf.org/wiki/License:OpenLDAPv2.8"
|
|
|
|
"https://www.gnu.org/licenses/license-list#newOpenLDAP"))
|
|
|
|
;; lists OpenLDAPv2.7, which is virtually identical
|
|
|
|
|
2013-01-14 23:00:54 +01:00
|
|
|
(define psfl
|
|
|
|
(license "Python Software Foundation License"
|
|
|
|
"http://docs.python.org/license.html"
|
|
|
|
#f))
|
|
|
|
|
2012-12-08 02:48:17 +01:00
|
|
|
(define public-domain
|
|
|
|
(license "Public Domain"
|
|
|
|
"http://directory.fsf.org/wiki/License:PublicDomain"
|
|
|
|
"https://www.gnu.org/licenses/license-list#PublicDomain"))
|
|
|
|
|
2013-01-23 21:16:22 +01:00
|
|
|
(define qpl
|
|
|
|
(license "QPL"
|
|
|
|
"http://directory.fsf.org/wiki/License:QPLv1.0"
|
|
|
|
"http://www.gnu.org/licenses/license-list.html#QPL"))
|
|
|
|
|
2014-09-27 14:56:44 +02:00
|
|
|
(define ruby
|
|
|
|
(license "Ruby License"
|
|
|
|
"http://directory.fsf.org/wiki/License:Ruby"
|
|
|
|
"https://www.ruby-lang.org/en/about/license.txt"))
|
|
|
|
|
2015-06-17 08:28:43 +02:00
|
|
|
(define sgifreeb2.0
|
|
|
|
(license "SGI Free Software License B, version 2.0"
|
|
|
|
"http://directory.fsf.org/wiki/License:SGIFreeBv2"
|
|
|
|
"https://www.gnu.org/licenses/license-list.html#SGIFreeB"))
|
|
|
|
|
2014-10-28 07:38:04 +01:00
|
|
|
(define silofl1.1
|
|
|
|
(license "SIL OFL 1.1"
|
|
|
|
"http://scripts.sil.org/OFL_web"
|
|
|
|
"https://www.gnu.org/licenses/license-list#SILOFL"))
|
|
|
|
|
2013-01-18 22:48:28 +01:00
|
|
|
(define vim
|
|
|
|
(license "Vim"
|
|
|
|
"http://directory.fsf.org/wiki/License:Vim7.2"
|
|
|
|
"http://www.gnu.org/licenses/license-list.html#Vim"))
|
|
|
|
|
2012-12-08 02:48:17 +01:00
|
|
|
(define x11
|
|
|
|
(license "X11"
|
|
|
|
"http://directory.fsf.org/wiki/License:X11"
|
|
|
|
"https://www.gnu.org/licenses/license-list#X11License"))
|
|
|
|
|
2013-03-04 02:08:24 +01:00
|
|
|
(define* (x11-style uri #:optional (comment ""))
|
|
|
|
"Return an X11-style license, whose full text can be found at URI,
|
|
|
|
which may be a file:// URI pointing the package's tree."
|
|
|
|
(license "X11-style"
|
|
|
|
uri
|
|
|
|
(string-append
|
|
|
|
"This is an X11-style, non-copyleft free software license. "
|
|
|
|
"Check the URI for details. "
|
|
|
|
comment)))
|
|
|
|
|
2012-12-08 02:48:17 +01:00
|
|
|
(define zlib
|
|
|
|
(license "Zlib"
|
|
|
|
"http://www.gzip.org/zlib/zlib_license.html"
|
|
|
|
"https://www.gnu.org/licenses/license-list#ZLib"))
|
|
|
|
|
2013-02-05 23:01:14 +01:00
|
|
|
(define* (fsf-free uri #:optional (comment ""))
|
|
|
|
"Return a license that does not fit any of the ones above or a collection
|
|
|
|
of licenses, approved as free by the FSF. More details can be found at URI."
|
|
|
|
(license "FSF-free"
|
|
|
|
uri
|
|
|
|
comment))
|
|
|
|
|
2012-12-08 02:48:17 +01:00
|
|
|
;;; licenses.scm ends here
|