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,
    }
}
