texlive: fix licensing information for doc-only-packages (#239528)

* licenses: add opubl

* texlive: fix license for npp-for-context and lshort-german

This unbreaks evaluation for `texlive.combine { inherit (texlive) scheme-full;
pkgFilter = (_: true) }`. The problem doesn't manifest for the default pkgFilter
as `npp-for-context` is a doc-only-package (that by the way has recently been
removed from texlive).

authored by

apfelkuchen6 and committed by
GitHub
ba6c2290 6a9c15fb

+13 -1
+5
lib/licenses.nix
··· 873 873 fullName = "OpenSSL License"; 874 874 }; 875 875 876 + opubl = { 877 + spdxId = "OPUBL-1.0"; 878 + fullName = "Open Publication License v1.0"; 879 + }; 880 + 876 881 osl2 = { 877 882 spdxId = "OSL-2.0"; 878 883 fullName = "Open Software License 2.0";
+6
pkgs/tools/typesetting/tex/texlive/default.nix
··· 49 49 license = [ "lppl13c" ]; 50 50 }; 51 51 52 + # TODO: remove this when updating to texlive-2023, npp-for-context is no longer in texlive 53 + npp-for-context = orig.npp-for-context // { 54 + # tlpdb lists license as "noinfo", but it's gpl3: https://github.com/luigiScarso/context-npp 55 + license = [ "gpl3Only" ]; 56 + }; 57 + 52 58 # remove dependency-heavy packages from the basic collections 53 59 collection-basic = orig.collection-basic // { 54 60 deps = lib.filter (n: n != "metafont" && n != "xdvi") orig.collection-basic.deps;
+1
pkgs/tools/typesetting/tex/texlive/tl2nix.sed
··· 58 58 s/"lppl1\.3a"/"lppl13a"/g 59 59 s/"lppl1\.3c"/"lppl13c"/g 60 60 s/"other-free"/"free"/g 61 + s/"opl"/"opubl"/g 61 62 s/"pd"/"publicDomain"/g 62 63 63 64 s/^catalogue-license (.*)/ license = [ \1 ];/p
+1 -1
pkgs/tools/typesetting/tex/texlive/tlpdb.nix
··· 25886 25886 stripPrefix = 0; 25887 25887 sha512.run = "c937bb8da86a3ef6d428d134903bf8af74a286d644bedfe4766841b2b5234b34e2caed70460ecaf7a1b1dc57f1faf1396435cca7f714f84d75f15acea12e79f8"; 25888 25888 sha512.doc = "69cebdd6a1444670a154d5cdd199022f6f1d6612b24b05fc8dc1e9f54a89fb65cda1f545341cd37616dbf6dd94077ccb924bf4b49f1473e45eb0bcd33f5f33a6"; 25889 - license = [ "opl" ]; 25889 + license = [ "opubl" ]; 25890 25890 version = "3.0c"; 25891 25891 }; 25892 25892 lshort-italian = {