licenses.scm 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2012, 2014, 2015, 2017, 2019, 2020, 2022 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, 2019 Ricardo Wurmus <rekado@elephly.net>
  7. ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
  8. ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
  9. ;;; Copyright © 2016 Fabian Harfert <fhmgufs@web.de>
  10. ;;; Copyright © 2016 Rene Saavedra <rennes@openmailbox.org>
  11. ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
  12. ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
  13. ;;; Copyright © 2017 Petter <petter@mykolab.ch>
  14. ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
  15. ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
  16. ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
  17. ;;; Copyright © 2020 André Batista <nandre@riseup.net>
  18. ;;; Copyright © 2020 Helio Machado <0x2b3bfa0+guix@googlemail.com>
  19. ;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
  20. ;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
  21. ;;; Copyright © 2021 Noisytoot <noisytoot@disroot.org>
  22. ;;; Copyright © 2021 Kyle Meyer <kyle@kyleam.com>
  23. ;;;
  24. ;;; This file is part of GNU Guix.
  25. ;;;
  26. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  27. ;;; under the terms of the GNU General Public License as published by
  28. ;;; the Free Software Foundation; either version 3 of the License, or (at
  29. ;;; your option) any later version.
  30. ;;;
  31. ;;; GNU Guix is distributed in the hope that it will be useful, but
  32. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  33. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  34. ;;; GNU General Public License for more details.
  35. ;;;
  36. ;;; You should have received a copy of the GNU General Public License
  37. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  38. (define-module (guix licenses)
  39. #:use-module (srfi srfi-9)
  40. #:export (license? license-name license-uri license-comment
  41. agpl1 agpl3 agpl3+
  42. apsl2
  43. asl1.1 asl2.0
  44. boost1.0
  45. bsd-0 bsd-1 bsd-2 bsd-3 bsd-4
  46. non-copyleft
  47. cc0
  48. cc-by2.0 cc-by3.0 cc-by4.0
  49. cc-by-sa2.0 cc-by-sa3.0 cc-by-sa4.0
  50. cddl1.0 cddl1.1
  51. cecill cecill-b cecill-c
  52. artistic2.0 clarified-artistic
  53. copyleft-next
  54. cpl1.0
  55. cua-opl1.0
  56. edl1.0
  57. epl1.0
  58. epl2.0
  59. eupl1.1
  60. eupl1.2
  61. expat expat-0
  62. freetype
  63. freebsd-doc
  64. giftware
  65. gpl1 gpl1+ gpl2 gpl2+ gpl3 gpl3+
  66. gfl1.0
  67. fdl1.1+ fdl1.2+ fdl1.3+
  68. opl1.0+ osl2.1
  69. isc
  70. ijg
  71. ibmpl1.0
  72. imlib2
  73. ipa
  74. knuth
  75. lal1.3
  76. lgpl2.0 lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3 lgpl3+ llgpl
  77. lpl1.02
  78. lppl lppl1.0+ lppl1.1+ lppl1.2 lppl1.2+
  79. lppl1.3 lppl1.3+
  80. lppl1.3a lppl1.3a+
  81. lppl1.3b lppl1.3b+
  82. lppl1.3c lppl1.3c+
  83. miros
  84. mpl1.0 mpl1.1 mpl2.0
  85. ms-pl
  86. ncsa
  87. nmap
  88. ogl-psi1.0
  89. openldap2.8 openssl
  90. perl-license
  91. psfl public-domain
  92. qpl
  93. qwt1.0
  94. repoze
  95. ruby
  96. sgifreeb2.0
  97. silofl1.1
  98. sleepycat
  99. tcl/tk
  100. unicode
  101. unlicense
  102. vim
  103. w3c
  104. x11 x11-style
  105. zpl2.1
  106. zlib
  107. fsf-free
  108. wtfpl2
  109. wxwindows3.1+
  110. hpnd
  111. fsdg-compatible))
  112. ;;; Commentary:
  113. ;;;
  114. ;;; Available licenses.
  115. ;;;
  116. ;;; This list is based on these links:
  117. ;;; https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix
  118. ;;; https://www.gnu.org/licenses/license-list
  119. ;;;
  120. ;;; Please update spdx-string->license from guix/import/utils.scm
  121. ;;; when modifying this list to avoid mismatches.
  122. ;;;
  123. ;;; Code:
  124. (define-record-type <license>
  125. (license name uri comment)
  126. actual-license?
  127. (name license-name)
  128. (uri license-uri)
  129. (comment license-comment))
  130. (define-syntax define-license-predicate
  131. (syntax-rules (define define*)
  132. "Define PREDICATE as a license predicate that, when applied to trivial
  133. cases, reduces to #t at macro-expansion time."
  134. ((_ predicate (variables ...) (procedures ...)
  135. (define variable _) rest ...)
  136. (define-license-predicate
  137. predicate
  138. (variable variables ...) (procedures ...)
  139. rest ...))
  140. ((_ predicate (variables ...) (procedures ...)
  141. (define* (procedure _ ...) _ ...)
  142. rest ...)
  143. (define-license-predicate
  144. predicate
  145. (variables ...) (procedure procedures ...)
  146. rest ...))
  147. ((_ predicate (variables ...) (procedures ...))
  148. (define-syntax predicate
  149. (lambda (s)
  150. (syntax-case s (variables ... procedures ...)
  151. ((_ variables) #t) ...
  152. ((_ (procedures _)) #t) ...
  153. ((_ obj) #'(actual-license? obj))
  154. (id
  155. (identifier? #'id)
  156. #'actual-license?)))))))
  157. (define-syntax begin-license-definitions
  158. (syntax-rules ()
  159. ((_ predicate definitions ...)
  160. (begin
  161. ;; Define PREDICATE such that it expands to #t when passed one of the
  162. ;; identifiers in DEFINITIONS.
  163. (define-license-predicate predicate () () definitions ...)
  164. definitions ...))))
  165. (begin-license-definitions license?
  166. (define agpl1
  167. (license "AGPL 1"
  168. "https://gnu.org/licenses/agpl.html"
  169. "https://gnu.org/licenses/why-affero-gpl.html"))
  170. (define agpl3
  171. (license "AGPL 3"
  172. "https://gnu.org/licenses/agpl.html"
  173. "https://gnu.org/licenses/why-affero-gpl.html"))
  174. (define agpl3+
  175. (license "AGPL 3+"
  176. "https://gnu.org/licenses/agpl.html"
  177. "https://gnu.org/licenses/why-affero-gpl.html"))
  178. (define apsl2
  179. (license "APSL 2.0"
  180. "https://directory.fsf.org/wiki/License:APSL-2.0"
  181. "https://www.gnu.org/licenses/license-list.html#apsl2"))
  182. (define asl1.1
  183. (license "ASL 1.1"
  184. "http://directory.fsf.org/wiki/License:Apache1.1"
  185. "https://www.gnu.org/licenses/license-list#apache1"))
  186. (define asl2.0
  187. (license "ASL 2.0"
  188. "http://directory.fsf.org/wiki/License:Apache2.0"
  189. "https://www.gnu.org/licenses/license-list#apache2"))
  190. (define boost1.0
  191. (license "Boost 1.0"
  192. "http://directory.fsf.org/wiki/License:Boost1.0"
  193. "https://www.gnu.org/licenses/license-list#boost"))
  194. (define bsd-0
  195. (license "Zero-Clause BSD"
  196. "https://spdx.org/licenses/0BSD.html"
  197. "https://opensource.org/licenses/0BSD"))
  198. (define bsd-1
  199. (license "BSD 1-Clause"
  200. "https://spdx.org/licenses/BSD-1-Clause.html"
  201. "https://opensource.org/licenses/BSD-1-Clause"))
  202. (define bsd-2
  203. (license "FreeBSD"
  204. "http://directory.fsf.org/wiki/License:FreeBSD"
  205. "https://www.gnu.org/licenses/license-list#FreeBSD"))
  206. (define bsd-3
  207. (license "Modified BSD"
  208. "http://directory.fsf.org/wiki/License:BSD_3Clause"
  209. "https://www.gnu.org/licenses/license-list#ModifiedBSD"))
  210. (define bsd-4
  211. (license "Original BSD"
  212. "http://directory.fsf.org/wiki/License:BSD_4Clause"
  213. "https://www.gnu.org/licenses/license-list#OriginalBSD"))
  214. (define* (non-copyleft uri #:optional (comment ""))
  215. "Return a lax, permissive, non-copyleft license (for example a variant of
  216. the 3-clause BSD license or the Expat license), whose full text can be found
  217. at URI, which may be a file:// URI pointing the package's tree."
  218. (license "non-copyleft"
  219. uri
  220. (string-append
  221. "This is a lax, non-copyleft free software license. "
  222. "Check the URI for details. "
  223. comment)))
  224. (define cc0
  225. (license "CC0"
  226. "http://directory.fsf.org/wiki/License:CC0"
  227. "http://www.gnu.org/licenses/license-list.html#CC0"))
  228. (define cc-by-sa4.0
  229. (license "CC-BY-SA 4.0"
  230. "http://creativecommons.org/licenses/by-sa/4.0/"
  231. "Creative Commons Attribution-ShareAlike 4.0 International"))
  232. (define cc-by-sa3.0
  233. (license "CC-BY-SA 3.0"
  234. "http://creativecommons.org/licenses/by-sa/3.0/"
  235. "Creative Commons Attribution-ShareAlike 3.0 Unported"))
  236. (define cc-by-sa2.0
  237. (license "CC-BY-SA 2.0"
  238. "http://creativecommons.org/licenses/by-sa/2.0/"
  239. "Creative Commons Attribution-ShareAlike 2.0 Generic"))
  240. (define cc-by4.0
  241. (license "CC-BY 4.0"
  242. "http://creativecommons.org/licenses/by/4.0/"
  243. "Creative Commons Attribution 4.0 Unported"))
  244. (define cc-by3.0
  245. (license "CC-BY 3.0"
  246. "http://creativecommons.org/licenses/by/3.0/"
  247. "Creative Commons Attribution 3.0 Unported"))
  248. (define cc-by2.0
  249. (license "CC-BY 2.0"
  250. "http://creativecommons.org/licenses/by/2.0/"
  251. "Creative Commons Attribution 2.0 Generic"))
  252. (define cddl1.0
  253. (license "CDDL 1.0"
  254. "http://directory.fsf.org/wiki/License:CDDLv1.0"
  255. "https://www.gnu.org/licenses/license-list#CDDL"))
  256. ;; CDDL1.1 is the same as 1.0, except that "Sun Microsystems, Inc" becomes "Oracle",
  257. ;; "LOST PROFITS" becoms "LOSS OF GOODWILL" and a section is added between 6.2
  258. ;; and 6.3.
  259. (define cddl1.1
  260. (license "CDDL 1.1"
  261. "https://oss.oracle.com/licenses/CDDL+GPL-1.1"
  262. "https://www.gnu.org/licenses/license-list#CDDL"))
  263. (define cecill ;copyleft
  264. (license "CeCILL"
  265. "http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.html"
  266. "https://www.gnu.org/licenses/license-list.html#CeCILL"))
  267. (define cecill-b ;non-copyleft
  268. (license "CeCILL-B"
  269. "http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html"
  270. "https://www.gnu.org/licenses/license-list.html#CeCILL"))
  271. (define cecill-c ;weak copyleft
  272. (license "CeCILL-C"
  273. "http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html"
  274. "https://www.gnu.org/licenses/license-list.html#CeCILL"))
  275. (define artistic2.0
  276. (license "Artistic License 2.0"
  277. "http://www.perlfoundation.org/artistic_license_2_0"
  278. "http://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
  279. (define clarified-artistic
  280. (license "Clarified Artistic"
  281. ;; http://directory.fsf.org/wiki/User:Jgay/license-categorization#Clarified_Artistic_License
  282. "http://gianluca.dellavedova.org/2011/01/03/clarified-artistic-license/"
  283. "https://www.gnu.org/licenses/license-list.html#ArtisticLicense2"))
  284. (define copyleft-next
  285. (license "copyleft-next"
  286. "https://raw.github.com/richardfontana/copyleft-next/master/Releases/copyleft-next-0.3.0"
  287. "GPL-compatible copyleft license"))
  288. (define cpl1.0
  289. (license "CPL 1.0"
  290. "http://directory.fsf.org/wiki/License:CPLv1.0"
  291. "https://www.gnu.org/licenses/license-list#CommonPublicLicense10"))
  292. (define cua-opl1.0
  293. (license "CUA Office Public License v1.0"
  294. "https://spdx.org/licenses/CUA-OPL-1.0.html"
  295. "https://opensource.org/licenses/CUA-OPL-1.0"))
  296. (define edl1.0
  297. (license "EDL 1.0"
  298. "http://directory.fsf.org/wiki/License:EDLv1.0"
  299. "https://eclipse.org/org/documents/edl-v10.php"))
  300. (define epl1.0
  301. (license "EPL 1.0"
  302. "http://directory.fsf.org/wiki/License:EPLv1.0"
  303. "https://www.gnu.org/licenses/license-list#EPL"))
  304. (define epl2.0
  305. (license "EPL 2.0"
  306. "https://www.eclipse.org/legal/epl-2.0/"
  307. "https://www.gnu.org/licenses/license-list#EPL2"))
  308. (define eupl1.1
  309. (license "EUPL 1.1"
  310. "https://directory.fsf.org/wiki/License:EUPL-1.1"
  311. "https://www.gnu.org/licenses/license-list#EUPL-1.1"))
  312. (define eupl1.2
  313. (license "EUPL 1.2"
  314. "https://directory.fsf.org/wiki/License:EUPL-1.2"
  315. "https://www.gnu.org/licenses/license-list#EUPL-1.2"))
  316. ;; Some people call it the MIT license. For clarification see:
  317. ;; https://www.gnu.org/licenses/license-list.html#Expat
  318. (define expat
  319. (license "Expat"
  320. "http://directory.fsf.org/wiki/License:Expat"
  321. "https://www.gnu.org/licenses/license-list.html#Expat"))
  322. (define expat-0
  323. (license "Expat No Attribution"
  324. ;; Note: There is a later formulation of the same license at
  325. ;; <https://github.com/aws/mit-0>.
  326. "https://romanrm.net/mit-zero"
  327. "Expat license with the attribution paragraph removed."))
  328. (define freetype
  329. (license "Freetype"
  330. "http://directory.fsf.org/wiki/License:Freetype"
  331. "https://www.gnu.org/licenses/license-list.html#freetype"))
  332. (define giftware
  333. (license "Giftware"
  334. "https://liballeg.org/license.html"
  335. "The Allegro 4 license"))
  336. (define gpl1
  337. (license "GPL 1"
  338. "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
  339. #f))
  340. (define gpl1+
  341. (license "GPL 1+"
  342. "https://www.gnu.org/licenses/old-licenses/gpl-1.0.html"
  343. #f))
  344. (define gpl2
  345. (license "GPL 2"
  346. "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
  347. "https://www.gnu.org/licenses/license-list#GPLv2"))
  348. (define gpl2+
  349. (license "GPL 2+"
  350. "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
  351. "https://www.gnu.org/licenses/license-list#GPLv2"))
  352. (define gpl3
  353. (license "GPL 3"
  354. "https://www.gnu.org/licenses/gpl.html"
  355. "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
  356. (define gpl3+
  357. (license "GPL 3+"
  358. "https://www.gnu.org/licenses/gpl.html"
  359. "https://www.gnu.org/licenses/license-list#GNUGPLv3"))
  360. ;; The “GUST font license” is legally equivalent to LPPL v1.3c as it only
  361. ;; extends the LPPL with an optional request.
  362. (define gfl1.0
  363. (license "GUST font license 1.0"
  364. "http://www.gust.org.pl/projects/e-foundry/licenses/GUST-FONT-LICENSE.txt"
  365. "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
  366. (define fdl1.1+
  367. (license "FDL 1.1+"
  368. "https://www.gnu.org/licenses/fdl-1.1"
  369. "https://www.gnu.org/licenses/license-list#FDL"))
  370. (define fdl1.2+
  371. (license "FDL 1.2+"
  372. "https://www.gnu.org/licenses/fdl-1.2"
  373. "https://www.gnu.org/licenses/license-list#FDL"))
  374. (define fdl1.3+
  375. (license "FDL 1.3+"
  376. "https://www.gnu.org/licenses/fdl.html"
  377. "https://www.gnu.org/licenses/license-list#FDL"))
  378. (define freebsd-doc
  379. (license "FreeBSD Documentation License"
  380. "https://www.freebsd.org/copyright/freebsd-doc-license.html"
  381. "https://www.gnu.org/licenses/license-list.html#FreeBSDDL"))
  382. (define opl1.0+
  383. (license "Open Publication License 1.0 or later"
  384. "http://opencontent.org/openpub/"
  385. "https://www.gnu.org/licenses/license-list#OpenPublicationL"))
  386. (define osl2.1
  387. (license "The Open Software License 2.1"
  388. "https://opensource.org/licenses/osl-2.1.php"
  389. "https://www.gnu.org/licenses/license-list#OSL"))
  390. (define isc
  391. (license "ISC"
  392. "http://directory.fsf.org/wiki/License:ISC"
  393. "https://www.gnu.org/licenses/license-list.html#ISC"))
  394. (define ijg
  395. (license "IJG"
  396. "http://directory.fsf.org/wiki/License:JPEG"
  397. "https://www.gnu.org/licenses/license-list#ijg"))
  398. (define ibmpl1.0
  399. (license "IBMPL 1.0"
  400. "http://directory.fsf.org/wiki/License:IBMPLv1.0"
  401. "https://www.gnu.org/licenses/license-list#IBMPL"))
  402. (define imlib2
  403. (license "Imlib2"
  404. "http://directory.fsf.org/wiki/License:Imlib2"
  405. "https://www.gnu.org/licenses/license-list#imlib"))
  406. (define ipa
  407. (license "IPA Font License"
  408. "http://directory.fsf.org/wiki/License:IPA_Font_License"
  409. "https://www.gnu.org/licenses/license-list#IPAFONT"))
  410. (define knuth
  411. (license "Donald Knuth's license for TeX"
  412. "http://www.ctan.org/license/knuth"
  413. "Modification are only permitted under a different name."))
  414. (define lal1.3
  415. (license "Free Art License 1.3"
  416. "http://artlibre.org/licence/lal/en/"
  417. "https://www.gnu.org/licenses/license-list#FreeArt"))
  418. (define lgpl2.0
  419. (license "LGPL 2.0"
  420. "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
  421. "https://www.gnu.org/licenses/why-not-lgpl.html"))
  422. (define lgpl2.0+
  423. (license "LGPL 2.0+"
  424. "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html"
  425. "https://www.gnu.org/licenses/why-not-lgpl.html"))
  426. (define lgpl2.1
  427. (license "LGPL 2.1"
  428. "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
  429. "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
  430. (define lgpl2.1+
  431. (license "LGPL 2.1+"
  432. "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html"
  433. "https://www.gnu.org/licenses/license-list#LGPLv2.1"))
  434. (define lgpl3
  435. (license "LGPL 3"
  436. "https://www.gnu.org/licenses/lgpl.html"
  437. "https://www.gnu.org/licenses/license-list#LGPLv3"))
  438. (define lgpl3+
  439. (license "LGPL 3+"
  440. "https://www.gnu.org/licenses/lgpl.html"
  441. "https://www.gnu.org/licenses/license-list#LGPLv3"))
  442. (define llgpl
  443. (license "LLGPL"
  444. "https://opensource.franz.com/preamble.html"
  445. "Lisp Lesser General Public License"))
  446. (define lpl1.02 ;Lucent
  447. (license "LPL 1.02"
  448. "https://directory.fsf.org/wiki/License:LPL-1.02"
  449. "https://www.gnu.org/licenses/license-list.html#lucent102"))
  450. (define lppl
  451. (license "LPPL (any version)"
  452. "https://www.latex-project.org/lppl/lppl-1-0/"
  453. "LaTeX Project Public License 1.0"))
  454. (define lppl1.0+
  455. (license "LPPL 1.0+"
  456. "https://www.latex-project.org/lppl/lppl-1-0/"
  457. "LaTeX Project Public License 1.0"))
  458. (define lppl1.1+
  459. (license "LPPL 1.1+"
  460. "https://www.latex-project.org/lppl/lppl-1-1/"
  461. "LaTeX Project Public License 1.1"))
  462. (define lppl1.2
  463. (license "LPPL 1.2"
  464. "http://directory.fsf.org/wiki/License:LPPLv1.2"
  465. "https://www.gnu.org/licenses/license-list#LPPL-1.2"))
  466. (define lppl1.2+
  467. (license "LPPL 1.2+"
  468. "http://directory.fsf.org/wiki/License:LPPLv1.2"
  469. "https://www.gnu.org/licenses/license-list#LPPL-1.2"))
  470. (define lppl1.3
  471. (license "LPPL 1.3"
  472. "https://www.latex-project.org/lppl/lppl-1-3/"
  473. "LaTeX Project Public License 1.3"))
  474. (define lppl1.3+
  475. (license "LPPL 1.3+"
  476. "https://www.latex-project.org/lppl/lppl-1-3/"
  477. "LaTeX Project Public License 1.3+"))
  478. (define lppl1.3a
  479. (license "LPPL 1.3a"
  480. "http://directory.fsf.org/wiki/License:LPPLv1.3a"
  481. "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
  482. (define lppl1.3a+
  483. (license "LPPL 1.3a+"
  484. "http://directory.fsf.org/wiki/License:LPPLv1.3a"
  485. "https://www.gnu.org/licenses/license-list#LPPL-1.3a"))
  486. (define lppl1.3b
  487. (license "LPPL 1.3b"
  488. "https://www.latex-project.org/lppl/lppl-1-3b/"
  489. "LaTeX Project Public License 1.3b"))
  490. (define lppl1.3b+
  491. (license "LPPL 1.3b+"
  492. "https://www.latex-project.org/lppl/lppl-1-3b/"
  493. "LaTeX Project Public License 1.3b or later"))
  494. (define lppl1.3c
  495. (license "LPPL 1.3c"
  496. "https://www.latex-project.org/lppl/lppl-1-3c/"
  497. "LaTeX Project Public License 1.3c"))
  498. (define lppl1.3c+
  499. (license "LPPL 1.3c+"
  500. "https://www.latex-project.org/lppl/lppl-1-3c/"
  501. "LaTeX Project Public License 1.3c or later"))
  502. (define miros
  503. (license "MirOS"
  504. "https://www.mirbsd.org/MirOS-Licence.htm"
  505. "MirOS License"))
  506. (define mpl1.0
  507. (license "MPL 1.0"
  508. "http://www.mozilla.org/MPL/1.0/"
  509. "https://www.gnu.org/licenses/license-list.html#MPL"))
  510. (define mpl1.1
  511. (license "MPL 1.1"
  512. "http://directory.fsf.org/wiki/License:MPLv1.1"
  513. "https://www.gnu.org/licenses/license-list#MPL"))
  514. (define mpl2.0
  515. (license "MPL 2.0"
  516. "http://directory.fsf.org/wiki/License:MPLv2.0"
  517. "https://www.gnu.org/licenses/license-list#MPL-2.0"))
  518. (define ms-pl
  519. (license "Ms-PL" ;Microsoft Public License
  520. "http://directory.fsf.org/wiki/License:MsPL"
  521. "http://www.gnu.org/licenses/license-list.html#ms-pl"))
  522. (define ncsa
  523. (license "NCSA/University of Illinois Open Source License"
  524. "http://directory.fsf.org/wiki/License:IllinoisNCSA"
  525. "https://www.gnu.org/licenses/license-list#NCSA"))
  526. (define nmap
  527. (license "Nmap license"
  528. "https://svn.nmap.org/nmap/LICENSE"
  529. "https://fedoraproject.org/wiki/Licensing/Nmap"))
  530. (define ogl-psi1.0
  531. (license "Open Government Licence for Public Sector Information"
  532. "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/1/"
  533. #f))
  534. (define openssl
  535. (license "OpenSSL"
  536. "http://directory.fsf.org/wiki/License:OpenSSL"
  537. "https://www.gnu.org/licenses/license-list#OpenSSL"))
  538. (define openldap2.8
  539. (license "OpenLDAPv2.8"
  540. "http://directory.fsf.org/wiki/License:OpenLDAPv2.8"
  541. "https://www.gnu.org/licenses/license-list#newOpenLDAP"))
  542. ;; lists OpenLDAPv2.7, which is virtually identical
  543. (define perl-license
  544. ;; The license of Perl, GPLv1+ or Artistic (we ignore the latter here).
  545. ;; We define this alias to avoid circular dependencies introduced by the use
  546. ;; of the '(package-license perl)' idiom.
  547. gpl1+)
  548. (define psfl
  549. (license "Python Software Foundation License"
  550. "http://docs.python.org/license.html"
  551. #f))
  552. (define public-domain
  553. (license "Public Domain"
  554. "http://directory.fsf.org/wiki/License:PublicDomain"
  555. "https://www.gnu.org/licenses/license-list#PublicDomain"))
  556. (define qpl
  557. (license "QPL"
  558. "http://directory.fsf.org/wiki/License:QPLv1.0"
  559. "http://www.gnu.org/licenses/license-list.html#QPL"))
  560. (define qwt1.0
  561. (license "QWT 1.0"
  562. "http://qwt.sourceforge.net/qwtlicense.html"
  563. "GNU Lesser General Public License with exceptions"))
  564. (define repoze
  565. (license "Repoze"
  566. "http://repoze.org/LICENSE.txt"
  567. "A BSD-like license with a clause requiring all changes to be
  568. attributed by author and date."))
  569. (define ruby
  570. (license "Ruby License"
  571. "http://directory.fsf.org/wiki/License:Ruby"
  572. "https://www.ruby-lang.org/en/about/license.txt"))
  573. (define sgifreeb2.0
  574. (license "SGI Free Software License B, version 2.0"
  575. "http://directory.fsf.org/wiki/License:SGIFreeBv2"
  576. "https://www.gnu.org/licenses/license-list.html#SGIFreeB"))
  577. (define silofl1.1
  578. (license "SIL OFL 1.1"
  579. "http://scripts.sil.org/OFL_web"
  580. "https://www.gnu.org/licenses/license-list#SILOFL"))
  581. (define sleepycat
  582. (license "Sleepycat"
  583. "http://directory.fsf.org/wiki/License:Sleepycat"
  584. "https://www.gnu.org/licenses/license-list#BerkeleyDB"))
  585. (define tcl/tk
  586. (license "Tcl/Tk"
  587. "http://www.tcl.tk/software/tcltk/license.html"
  588. "A non-copyleft free software license from the Tcl/Tk project"))
  589. (define vim
  590. (license "Vim"
  591. "http://directory.fsf.org/wiki/License:Vim7.2"
  592. "http://www.gnu.org/licenses/license-list.html#Vim"))
  593. (define unicode
  594. (license "Unicode"
  595. "https://directory.fsf.org/wiki/License:Unicode"
  596. "http://www.gnu.org/licenses/license-list.html#Unicode"))
  597. (define unlicense
  598. (license "Unlicense"
  599. "https://unlicense.org/"
  600. "https://www.gnu.org/licenses/license-list.html#Unlicense"))
  601. (define w3c
  602. (license "W3C Software Notice and License"
  603. "https://directory.fsf.org/wiki/License:W3C_31Dec2002"
  604. "https://www.gnu.org/licenses/license-list.en.html#W3C"))
  605. (define wtfpl2
  606. (license "WTFPL 2"
  607. "http://www.wtfpl.net"
  608. "http://www.wtfpl.net/about/"))
  609. (define wxwindows3.1+
  610. (license "wxWindows 3.1+"
  611. "https://wxwidgets.org/about/licence"
  612. "https://www.gnu.org/licenses/license-list.html#Wxwind"))
  613. (define x11
  614. (license "X11"
  615. "http://directory.fsf.org/wiki/License:X11"
  616. "https://www.gnu.org/licenses/license-list#X11License"))
  617. (define* (x11-style uri #:optional (comment ""))
  618. "Return an X11-style license, whose full text can be found at URI,
  619. which may be a file:// URI pointing the package's tree."
  620. (license "X11-style"
  621. uri
  622. (string-append
  623. "This is an X11-style, non-copyleft free software license. "
  624. "Check the URI for details. "
  625. comment)))
  626. (define zpl2.1
  627. (license "Zope Public License 2.1"
  628. "http://directory.fsf.org/wiki?title=License:ZopePLv2.1"
  629. "https://www.gnu.org/licenses/license-list.html#Zope2.0"))
  630. (define zlib
  631. (license "Zlib"
  632. "https://zlib.net/zlib_license.html"
  633. "https://www.gnu.org/licenses/license-list#ZLib"))
  634. (define hpnd
  635. (license "HPND"
  636. "https://directory.fsf.org/wiki/License:HPND"
  637. "https://www.gnu.org/licenses/license-list#HPND"))
  638. (define* (fsf-free uri #:optional (comment ""))
  639. "Return a license that does not fit any of the ones above or a collection
  640. of licenses, approved as free by the FSF. More details can be found at URI."
  641. (license "FSF-free"
  642. uri
  643. comment))
  644. (define* (fsdg-compatible uri #:optional (comment ""))
  645. "Return a license that does not fit any of the ones above or a collection
  646. of licenses, not necessarily free, but in accordance with FSDG as Non-functional
  647. Data. More details can be found at URI. See also
  648. https://www.gnu.org/distros/free-system-distribution-guidelines.en.html#non-functional-data."
  649. (license "FSDG-compatible"
  650. uri
  651. comment)))
  652. ;;; licenses.scm ends here