1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
|
pub fn get_nix_license(license: &str) -> Option<&'static str> {
match license {
"0BSD" => Some("bsd0"),
"AFL-2.0" => Some("afl20"),
"AFL-2.1" => Some("afl21"),
"AFL-3.0" => Some("afl3"),
"AGPL-3.0" => Some("agpl3Only"),
"AGPL-3.0-only" => Some("agpl3Only"),
"AGPL-3.0-or-later" => Some("agpl3Plus"),
"APSL-1.0" => Some("apple-psl10"),
"APSL-2.0" => Some("apple-psl20"),
"Abstyles" => Some("abstyles"),
"Aladdin" => Some("aladdin"),
"Apache-2.0" => Some("asl20"),
"Apache-2.0 WITH LLVM-exception" => Some("asl20-llvm"),
"Arphic-1999" => Some("arphicpl"),
"Artistic-1.0" => Some("artistic1"),
"Artistic-1.0-cl8" => Some("artistic1-cl8"),
"Artistic-2.0" => Some("artistic2"),
"BSD-1-Clause" => Some("bsd1"),
"BSD-2-Clause" => Some("bsd2"),
"BSD-2-Clause-FreeBSD" => Some("bsd2WithViews"),
"BSD-2-Clause-NetBSD" => Some("bsd2"),
"BSD-2-Clause-Patent" => Some("bsd2Patent"),
"BSD-2-Clause-Views" => Some("bsd2WithViews"),
"BSD-3-Clause" => Some("bsd3"),
"BSD-3-Clause-Clear" => Some("bsd3Clear"),
"BSD-4-Clause" => Some("bsdOriginal"),
"BSD-4-Clause-Shortened" => Some("bsdOriginalShortened"),
"BSD-4-Clause-UC" => Some("bsdOriginalUC"),
"BSD-Protection" => Some("bsdProtection"),
"BSL-1.0" => Some("boost"),
"BUSL-1.1" => Some("bsl11"),
"Beerware" => Some("beerware"),
"BitTorrent-1.0" => Some("bitTorrent10"),
"BitTorrent-1.1" => Some("bitTorrent11"),
"Bitstream-Vera" => Some("bitstreamVera"),
"BlueOak-1.0.0" => Some("blueOak100"),
"CAL-1.0" => Some("cal10"),
"CC-BY-1.0" => Some("cc-by-10"),
"CC-BY-2.0" => Some("cc-by-20"),
"CC-BY-3.0" => Some("cc-by-30"),
"CC-BY-4.0" => Some("cc-by-40"),
"CC-BY-NC-3.0" => Some("cc-by-nc-30"),
"CC-BY-NC-4.0" => Some("cc-by-nc-40"),
"CC-BY-NC-ND-3.0" => Some("cc-by-nc-nd-30"),
"CC-BY-NC-ND-4.0" => Some("cc-by-nc-nd-40"),
"CC-BY-NC-SA-2.0" => Some("cc-by-nc-sa-20"),
"CC-BY-NC-SA-2.5" => Some("cc-by-nc-sa-25"),
"CC-BY-NC-SA-3.0" => Some("cc-by-nc-sa-30"),
"CC-BY-NC-SA-4.0" => Some("cc-by-nc-sa-40"),
"CC-BY-ND-3.0" => Some("cc-by-nd-30"),
"CC-BY-ND-4.0" => Some("cc-by-nd-40"),
"CC-BY-SA-1.0" => Some("cc-by-sa-10"),
"CC-BY-SA-2.0" => Some("cc-by-sa-20"),
"CC-BY-SA-2.5" => Some("cc-by-sa-25"),
"CC-BY-SA-3.0" => Some("cc-by-sa-30"),
"CC-BY-SA-4.0" => Some("cc-by-sa-40"),
"CC0-1.0" => Some("cc0"),
"CDDL-1.0" => Some("cddl"),
"CECILL-2.0" => Some("cecill20"),
"CECILL-2.1" => Some("cecill21"),
"CECILL-B" => Some("cecill-b"),
"CECILL-C" => Some("cecill-c"),
"CPAL-1.0" => Some("cpal10"),
"CPL-1.0" => Some("cpl10"),
"Caldera" => Some("caldera"),
"ClArtistic" => Some("clArtistic"),
"DOC" => Some("doc"),
"DRL-1.0" => Some("drl10"),
"ECL-2.0" => Some("ecl20"),
"EFL-1.0" => Some("efl10"),
"EFL-2.0" => Some("efl20"),
"EPL-1.0" => Some("epl10"),
"EPL-2.0" => Some("epl20"),
"EUPL-1.1" => Some("eupl11"),
"EUPL-1.2" => Some("eupl12"),
"Elastic-2.0" => Some("elastic20"),
"FDK-AAC" => Some("fraunhofer-fdk"),
"FTL" => Some("ftl"),
"Fair" => Some("fair"),
"GFDL-1.1" => Some("fdl11Only"),
"GFDL-1.1-only" => Some("fdl11Only"),
"GFDL-1.1-or-later" => Some("fdl11Plus"),
"GFDL-1.2" => Some("fdl12Only"),
"GFDL-1.2-only" => Some("fdl12Only"),
"GFDL-1.2-or-later" => Some("fdl12Plus"),
"GFDL-1.3" => Some("fdl13Only"),
"GFDL-1.3-only" => Some("fdl13Only"),
"GFDL-1.3-or-later" => Some("fdl13Plus"),
"GPL-1.0" => Some("gpl1Only"),
"GPL-1.0+" => Some("gpl1Plus"),
"GPL-1.0-only" => Some("gpl1Only"),
"GPL-1.0-or-later" => Some("gpl1Plus"),
"GPL-2.0" => Some("gpl2Only"),
"GPL-2.0+" => Some("gpl2Plus"),
"GPL-2.0-only" => Some("gpl2Only"),
"GPL-2.0-or-later" => Some("gpl2Plus"),
"GPL-2.0-with-classpath-exception" => Some("gpl2Classpath"),
"GPL-3.0" => Some("gpl3Only"),
"GPL-3.0+" => Some("gpl3Plus"),
"GPL-3.0-only" => Some("gpl3Only"),
"GPL-3.0-or-later" => Some("gpl3Plus"),
"Giftware" => Some("giftware"),
"HPND" => Some("hpnd"),
"HPND-UC" => Some("hpndUc"),
"HPND-sell-variant" => Some("hpndSellVariant"),
"ICU" => Some("icu"),
"IJG" => Some("ijg"),
"IPA" => Some("ipa"),
"IPL-1.0" => Some("ipl10"),
"ISC" => Some("isc"),
"ImageMagick" => Some("imagemagick"),
"Imlib2" => Some("imlib2"),
"Info-ZIP" => Some("info-zip"),
"Intel-ACPI" => Some("iasl"),
"Knuth-CTAN" => Some("knuth"),
"LAL-1.2" => Some("lal12"),
"LAL-1.3" => Some("lal13"),
"LGPL-2.0" => Some("lgpl2Only"),
"LGPL-2.0+" => Some("lgpl2Plus"),
"LGPL-2.0-only" => Some("lgpl2Only"),
"LGPL-2.0-or-later" => Some("lgpl2Plus"),
"LGPL-2.1" => Some("lgpl21Only"),
"LGPL-2.1+" => Some("lgpl21Plus"),
"LGPL-2.1-only" => Some("lgpl21Only"),
"LGPL-2.1-or-later" => Some("lgpl21Plus"),
"LGPL-3.0" => Some("lgpl3Only"),
"LGPL-3.0+" => Some("lgpl3Plus"),
"LGPL-3.0-only" => Some("lgpl3Only"),
"LGPL-3.0-or-later" => Some("lgpl3Plus"),
"LGPLLR" => Some("lgpllr"),
"LPL-1.02" => Some("lpl-102"),
"LPPL-1.0" => Some("lppl1"),
"LPPL-1.2" => Some("lppl12"),
"LPPL-1.3a" => Some("lppl13a"),
"LPPL-1.3c" => Some("lppl13c"),
"Libpng" => Some("libpng"),
"MIT" => Some("mit"),
"MIT-0" => Some("mit0"),
"MIT-Modern-Variant" => Some("mit-modern"),
"MIT-advertising" => Some("mitAdvertising"),
"MIT-feh" => Some("mit-feh"),
"MPL-1.0" => Some("mpl10"),
"MPL-1.1" => Some("mpl11"),
"MPL-2.0" => Some("mpl20"),
"MS-PL" => Some("mspl"),
"MirOS" => Some("miros"),
"MulanPSL-2.0" => Some("mulan-psl2"),
"NASA-1.3" => Some("nasa13"),
"NCBI-PD" => Some("ncbiPd"),
"NCSA" => Some("ncsa"),
"NCUL1" => Some("ncul1"),
"NIST-Software" => Some("nistSoftware"),
"NLPL" => Some("nlpl"),
"NPOSL-3.0" => Some("nposl3"),
"OCaml-LGPL-linking-exception" => Some("ocamlLgplLinkingException"),
"ODbL-1.0" => Some("odbl"),
"OFL-1.1" => Some("ofl"),
"OLDAP-2.8" => Some("openldap"),
"OML" => Some("oml"),
"OPUBL-1.0" => Some("opubl"),
"OSL-2.0" => Some("osl2"),
"OSL-2.1" => Some("osl21"),
"OSL-3.0" => Some("osl3"),
"OpenSSL" => Some("openssl"),
"PHP-3.01" => Some("php301"),
"Parity-7.0.0" => Some("parity70"),
"PostgreSQL" => Some("postgresql"),
"Python-2.0" => Some("psfl"),
"QPL-1.0" => Some("qpl"),
"Qhull" => Some("qhull"),
"Ruby" => Some("ruby"),
"SGI-B-2.0" => Some("sgi-b-20"),
"SMLNJ" => Some("smlnj"),
"Sendmail" => Some("sendmail"),
"Sleepycat" => Some("sleepycat"),
"TCL" => Some("tcltk"),
"UPL-1.0" => Some("upl"),
"Unicode-3.0" => Some("unicode-30"),
"Unicode-DFS-2015" => Some("unicode-dfs-2015"),
"Unicode-DFS-2016" => Some("unicode-dfs-2016"),
"Unlicense" => Some("unlicense"),
"VSL-1.0" => Some("vsl10"),
"Vim" => Some("vim"),
"W3C" => Some("w3c"),
"WTFPL" => Some("wtfpl"),
"Watcom-1.0" => Some("watcom"),
"X11" => Some("x11"),
"XSkat" => Some("xskat"),
"Xfig" => Some("xfig"),
"ZPL-2.0" => Some("zpl20"),
"ZPL-2.1" => Some("zpl21"),
"Zlib" => Some("zlib"),
"curl" => Some("curl"),
"dtoa" => Some("dtoa"),
"libpng-2.0" => Some("libpng2"),
"libtiff" => Some("libtiff"),
"mplus" => Some("mplus"),
"wxWindows" => Some("wxWindows"),
"xinetd" => Some("xinetd"),
_ => None,
}
}
|