at 17.09-beta 12 kB view raw
1let 2 3 lib = import ./default.nix; 4 5 spdx = lic: lic // { 6 url = "http://spdx.org/licenses/${lic.spdxId}"; 7 }; 8 9in 10 11lib.mapAttrs (n: v: v // { shortName = n; }) rec { 12 /* License identifiers from spdx.org where possible. 13 * If you cannot find your license here, then look for a similar license or 14 * add it to this list. The URL mentioned above is a good source for inspiration. 15 */ 16 17 afl21 = spdx { 18 spdxId = "AFL-2.1"; 19 fullName = "Academic Free License"; 20 }; 21 22 agpl3 = spdx { 23 spdxId = "AGPL-3.0"; 24 fullName = "GNU Affero General Public License v3.0"; 25 }; 26 27 agpl3Plus = { 28 fullName = "GNU Affero General Public License v3.0 or later"; 29 inherit (agpl3) url; 30 }; 31 32 amazonsl = { 33 fullName = "Amazon Software License"; 34 url = http://aws.amazon.com/asl/; 35 free = false; 36 }; 37 38 amd = { 39 fullName = "AMD License Agreement"; 40 url = http://developer.amd.com/amd-license-agreement/; 41 }; 42 43 apsl20 = spdx { 44 spdxId = "APSL-2.0"; 45 fullName = "Apple Public Source License 2.0"; 46 }; 47 48 arphicpl = { 49 fullName = "Arphic Public License"; 50 url = https://www.freedesktop.org/wiki/Arphic_Public_License/; 51 }; 52 53 artistic1 = spdx { 54 spdxId = "Artistic-1.0"; 55 fullName = "Artistic License 1.0"; 56 }; 57 58 artistic2 = spdx { 59 spdxId = "Artistic-2.0"; 60 fullName = "Artistic License 2.0"; 61 }; 62 63 asl20 = spdx { 64 spdxId = "Apache-2.0"; 65 fullName = "Apache License 2.0"; 66 }; 67 68 boost = spdx { 69 spdxId = "BSL-1.0"; 70 fullName = "Boost Software License 1.0"; 71 }; 72 73 beerware = spdx { 74 spdxId = "Beerware"; 75 fullName = ''Beerware License''; 76 }; 77 78 bsd2 = spdx { 79 spdxId = "BSD-2-Clause"; 80 fullName = ''BSD 2-clause "Simplified" License''; 81 }; 82 83 bsd3 = spdx { 84 spdxId = "BSD-3-Clause"; 85 fullName = ''BSD 3-clause "New" or "Revised" License''; 86 }; 87 88 bsdOriginal = spdx { 89 spdxId = "BSD-4-Clause"; 90 fullName = ''BSD 4-clause "Original" or "Old" License''; 91 }; 92 93 cc0 = spdx { 94 spdxId = "CC0-1.0"; 95 fullName = "Creative Commons Zero v1.0 Universal"; 96 }; 97 98 cc-by-nc-sa-20 = spdx { 99 spdxId = "CC-BY-NC-SA-2.0"; 100 fullName = "Creative Commons Attribution Non Commercial Share Alike 2.0"; 101 }; 102 103 cc-by-nc-sa-25 = spdx { 104 spdxId = "CC-BY-NC-SA-2.5"; 105 fullName = "Creative Commons Attribution Non Commercial Share Alike 2.5"; 106 }; 107 108 cc-by-nc-sa-30 = spdx { 109 spdxId = "CC-BY-NC-SA-3.0"; 110 fullName = "Creative Commons Attribution Non Commercial Share Alike 3.0"; 111 }; 112 113 cc-by-nc-sa-40 = spdx { 114 spdxId = "CC-BY-NC-SA-4.0"; 115 fullName = "Creative Commons Attribution Non Commercial Share Alike 4.0"; 116 }; 117 118 cc-by-nd-30 = spdx { 119 spdxId = "CC-BY-ND-3.0"; 120 fullName = "Creative Commons Attribution-No Derivative Works v3.00"; 121 }; 122 123 cc-by-sa-25 = spdx { 124 spdxId = "CC-BY-SA-2.5"; 125 fullName = "Creative Commons Attribution Share Alike 2.5"; 126 }; 127 128 cc-by-30 = spdx { 129 spdxId = "CC-BY-3.0"; 130 fullName = "Creative Commons Attribution 3.0"; 131 }; 132 133 cc-by-sa-30 = spdx { 134 spdxId = "CC-BY-SA-3.0"; 135 fullName = "Creative Commons Attribution Share Alike 3.0"; 136 }; 137 138 cc-by-40 = spdx { 139 spdxId = "CC-BY-4.0"; 140 fullName = "Creative Commons Attribution 4.0"; 141 }; 142 143 cc-by-sa-40 = spdx { 144 spdxId = "CC-BY-SA-4.0"; 145 fullName = "Creative Commons Attribution Share Alike 4.0"; 146 }; 147 148 cddl = spdx { 149 spdxId = "CDDL-1.0"; 150 fullName = "Common Development and Distribution License 1.0"; 151 }; 152 153 cecill20 = spdx { 154 spdxId = "CECILL-2.0"; 155 fullName = "CeCILL Free Software License Agreement v2.0"; 156 }; 157 158 cecill-b = spdx { 159 spdxId = "CECILL-B"; 160 fullName = "CeCILL-B Free Software License Agreement"; 161 }; 162 163 cecill-c = spdx { 164 spdxId = "CECILL-C"; 165 fullName = "CeCILL-C Free Software License Agreement"; 166 }; 167 168 cpl10 = spdx { 169 spdxId = "CPL-1.0"; 170 fullName = "Common Public License 1.0"; 171 }; 172 173 doc = spdx { 174 spdxId = "DOC"; 175 fullName = "DOC License"; 176 }; 177 178 efl10 = spdx { 179 spdxId = "EFL-1.0"; 180 fullName = "Eiffel Forum License v1.0"; 181 }; 182 183 efl20 = spdx { 184 spdxId = "EFL-2.0"; 185 fullName = "Eiffel Forum License v2.0"; 186 }; 187 188 epl10 = spdx { 189 spdxId = "EPL-1.0"; 190 fullName = "Eclipse Public License 1.0"; 191 }; 192 193 epson = { 194 fullName = "Seiko Epson Corporation Software License Agreement for Linux"; 195 url = https://download.ebz.epson.net/dsc/du/02/eula/global/LINUX_EN.html; 196 free = false; 197 }; 198 199 eupl11 = spdx { 200 spdxId = "EUPL-1.1"; 201 fullname = "European Union Public License 1.1"; 202 }; 203 204 fdl12 = spdx { 205 spdxId = "GFDL-1.2"; 206 fullName = "GNU Free Documentation License v1.2"; 207 }; 208 209 fdl13 = spdx { 210 spdxId = "GFDL-1.3"; 211 fullName = "GNU Free Documentation License v1.3"; 212 }; 213 214 free = { 215 fullName = "Unspecified free software license"; 216 }; 217 218 g4sl = { 219 fullName = "Geant4 Software License"; 220 url = https://geant4.web.cern.ch/geant4/license/LICENSE.html; 221 }; 222 223 geogebra = { 224 fullName = "GeoGebra Non-Commercial License Agreement"; 225 url = https://www.geogebra.org/license; 226 free = false; 227 }; 228 229 gpl1 = spdx { 230 spdxId = "GPL-1.0"; 231 fullName = "GNU General Public License v1.0 only"; 232 }; 233 234 gpl1Plus = spdx { 235 spdxId = "GPL-1.0+"; 236 fullName = "GNU General Public License v1.0 or later"; 237 }; 238 239 gpl2 = spdx { 240 spdxId = "GPL-2.0"; 241 fullName = "GNU General Public License v2.0 only"; 242 }; 243 244 gpl2ClasspathPlus = { 245 fullName = "GNU General Public License v2.0 or later (with Classpath exception)"; 246 url = https://fedoraproject.org/wiki/Licensing/GPL_Classpath_Exception; 247 }; 248 249 gpl2Oss = { 250 fullName = "GNU General Public License version 2 only (with OSI approved licenses linking exception)"; 251 url = http://www.mysql.com/about/legal/licensing/foss-exception; 252 }; 253 254 gpl2Plus = spdx { 255 spdxId = "GPL-2.0+"; 256 fullName = "GNU General Public License v2.0 or later"; 257 }; 258 259 gpl3 = spdx { 260 spdxId = "GPL-3.0"; 261 fullName = "GNU General Public License v3.0 only"; 262 }; 263 264 gpl3Plus = spdx { 265 spdxId = "GPL-3.0+"; 266 fullName = "GNU General Public License v3.0 or later"; 267 }; 268 269 gpl3ClasspathPlus = { 270 fullName = "GNU General Public License v3.0 or later (with Classpath exception)"; 271 url = https://fedoraproject.org/wiki/Licensing/GPL_Classpath_Exception; 272 }; 273 274 # Intel's license, seems free 275 iasl = { 276 fullName = "iASL"; 277 url = http://www.calculate-linux.org/packages/licenses/iASL; 278 }; 279 280 ijg = spdx { 281 spdxId = "IJG"; 282 fullName = "Independent JPEG Group License"; 283 }; 284 285 inria = { 286 fullName = "INRIA Non-Commercial License Agreement"; 287 url = "http://compcert.inria.fr/doc/LICENSE"; 288 }; 289 290 ipa = spdx { 291 spdxId = "IPA"; 292 fullName = "IPA Font License"; 293 }; 294 295 ipl10 = spdx { 296 spdxId = "IPL-1.0"; 297 fullName = "IBM Public License v1.0"; 298 }; 299 300 isc = spdx { 301 spdxId = "ISC"; 302 fullName = "ISC License"; 303 }; 304 305 lgpl2 = spdx { 306 spdxId = "LGPL-2.0"; 307 fullName = "GNU Library General Public License v2 only"; 308 }; 309 310 lgpl2Plus = spdx { 311 spdxId = "LGPL-2.0+"; 312 fullName = "GNU Library General Public License v2 or later"; 313 }; 314 315 lgpl21 = spdx { 316 spdxId = "LGPL-2.1"; 317 fullName = "GNU Library General Public License v2.1 only"; 318 }; 319 320 lgpl21Plus = spdx { 321 spdxId = "LGPL-2.1+"; 322 fullName = "GNU Library General Public License v2.1 or later"; 323 }; 324 325 lgpl3 = spdx { 326 spdxId = "LGPL-3.0"; 327 fullName = "GNU Lesser General Public License v3.0 only"; 328 }; 329 330 lgpl3Plus = spdx { 331 spdxId = "LGPL-3.0+"; 332 fullName = "GNU Lesser General Public License v3.0 or later"; 333 }; 334 335 libpng = spdx { 336 spdxId = "Libpng"; 337 fullName = "libpng License"; 338 }; 339 340 libtiff = spdx { 341 spdxId = "libtiff"; 342 fullName = "libtiff License"; 343 }; 344 345 llgpl21 = { 346 fullName = "Lisp LGPL; GNU Lesser General Public License version 2.1 with Franz Inc. preamble for clarification of LGPL terms in context of Lisp"; 347 url = http://opensource.franz.com/preamble.html; 348 }; 349 350 lppl12 = spdx { 351 spdxId = "LPPL-1.2"; 352 fullName = "LaTeX Project Public License v1.2"; 353 }; 354 355 lppl13c = spdx { 356 spdxId = "LPPL-1.3c"; 357 fullName = "LaTeX Project Public License v1.3c"; 358 }; 359 360 lpl-102 = spdx { 361 spdxId = "LPL-1.02"; 362 fullName = "Lucent Public License v1.02"; 363 }; 364 365 miros = { 366 fullname = "MirOS License"; 367 url = https://opensource.org/licenses/MirOS; 368 }; 369 370 # spdx.org does not (yet) differentiate between the X11 and Expat versions 371 # for details see http://en.wikipedia.org/wiki/MIT_License#Various_versions 372 mit = spdx { 373 spdxId = "MIT"; 374 fullName = "MIT License"; 375 }; 376 377 mpl10 = spdx { 378 spdxId = "MPL-1.0"; 379 fullName = "Mozilla Public License 1.0"; 380 }; 381 382 mpl11 = spdx { 383 spdxId = "MPL-1.1"; 384 fullName = "Mozilla Public License 1.1"; 385 }; 386 387 mpl20 = spdx { 388 spdxId = "MPL-2.0"; 389 fullName = "Mozilla Public License 2.0"; 390 }; 391 392 mspl = spdx { 393 spdxId = "MS-PL"; 394 fullName = "Microsoft Public License"; 395 }; 396 397 msrla = { 398 fullName = "Microsoft Research License Agreement"; 399 url = "http://research.microsoft.com/en-us/projects/pex/msr-la.txt"; 400 }; 401 402 ncsa = spdx { 403 spdxId = "NCSA"; 404 fullName = "University of Illinois/NCSA Open Source License"; 405 }; 406 407 notion_lgpl = { 408 url = "https://raw.githubusercontent.com/raboof/notion/master/LICENSE"; 409 fullName = "Notion modified LGPL"; 410 }; 411 412 ofl = spdx { 413 spdxId = "OFL-1.1"; 414 fullName = "SIL Open Font License 1.1"; 415 }; 416 417 openldap = spdx { 418 spdxId = "OLDAP-2.8"; 419 fullName = "Open LDAP Public License v2.8"; 420 }; 421 422 openssl = spdx { 423 spdxId = "OpenSSL"; 424 fullName = "OpenSSL License"; 425 }; 426 427 php301 = spdx { 428 spdxId = "PHP-3.01"; 429 fullName = "PHP License v3.01"; 430 }; 431 432 postgresql = spdx { 433 spdxId = "PostgreSQL"; 434 fullName = "PostgreSQL License"; 435 }; 436 437 psfl = spdx { 438 spdxId = "Python-2.0"; 439 fullName = "Python Software Foundation License version 2"; 440 #url = http://docs.python.org/license.html; 441 }; 442 443 publicDomain = { 444 fullName = "Public Domain"; 445 }; 446 447 qpl = spdx { 448 spdxId = "QPL-1.0"; 449 fullName = "Q Public License 1.0"; 450 }; 451 452 qwt = { 453 fullName = "Qwt License, Version 1.0"; 454 url = http://qwt.sourceforge.net/qwtlicense.html; 455 }; 456 457 ruby = spdx { 458 spdxId = "Ruby"; 459 fullName = "Ruby License"; 460 }; 461 462 sgi-b-20 = spdx { 463 spdxId = "SGI-B-2.0"; 464 fullName = "SGI Free Software License B v2.0"; 465 }; 466 467 sleepycat = spdx { 468 spdxId = "Sleepycat"; 469 fullName = "Sleepycat License"; 470 }; 471 472 smail = { 473 shortName = "smail"; 474 fullName = "SMAIL General Public License"; 475 url = http://metadata.ftp-master.debian.org/changelogs/main/d/debianutils/debianutils_4.8.1_copyright; 476 }; 477 478 tcltk = spdx { 479 spdxId = "TCL"; 480 fullName = "TCL/TK License"; 481 }; 482 483 ufl = { 484 fullName = "Ubuntu Font License 1.0"; 485 url = http://font.ubuntu.com/ufl/ubuntu-font-licence-1.0.txt; 486 }; 487 488 unfree = { 489 fullName = "Unfree"; 490 free = false; 491 }; 492 493 unfreeRedistributable = { 494 fullName = "Unfree redistributable"; 495 free = false; 496 }; 497 498 unfreeRedistributableFirmware = { 499 fullName = "Unfree redistributable firmware"; 500 # Note: we currently consider these "free" for inclusion in the 501 # channel and NixOS images. 502 }; 503 504 unlicense = spdx { 505 spdxId = "Unlicense"; 506 fullName = "The Unlicense"; 507 }; 508 509 upl = { 510 fullName = "Universal Permissive License"; 511 url = "https://oss.oracle.com/licenses/upl/"; 512 }; 513 514 vim = spdx { 515 spdxId = "Vim"; 516 fullName = "Vim License"; 517 }; 518 519 vsl10 = spdx { 520 spdxId = "VSL-1.0"; 521 fullName = "Vovida Software License v1.0"; 522 }; 523 524 w3c = spdx { 525 spdxId = "W3C"; 526 fullName = "W3C Software Notice and License"; 527 }; 528 529 wadalab = { 530 fullName = "Wadalab Font License"; 531 url = https://fedoraproject.org/wiki/Licensing:Wadalab?rd=Licensing/Wadalab; 532 }; 533 534 wtfpl = spdx { 535 spdxId = "WTFPL"; 536 fullName = "Do What The F*ck You Want To Public License"; 537 }; 538 539 wxWindows = spdx { 540 spdxId = "WXwindows"; 541 fullName = "wxWindows Library Licence, Version 3.1"; 542 }; 543 544 zlib = spdx { 545 spdxId = "Zlib"; 546 fullName = "zlib License"; 547 }; 548 549 zpl20 = spdx { 550 spdxId = "ZPL-2.0"; 551 fullName = "Zope Public License 2.0"; 552 }; 553 554 zpl21 = spdx { 555 spdxId = "ZPL-2.1"; 556 fullName = "Zope Public License 2.1"; 557 }; 558 559}