lol

texlive: remove 'texlive-' prefix from package names

+17 -22
+9 -9
pkgs/tools/typesetting/tex/texlive/bin.nix
··· 197 197 inherit (core-big) metafont mflua metapost luatex luahbtex xetex; 198 198 luajittex = core.big.luajittex or null; 199 199 core-big = stdenv.mkDerivation { 200 - pname = "texlive-core-big.bin"; 200 + pname = "texlive-bin-big"; 201 201 inherit version; 202 202 203 203 __structuredAttrs = true; ··· 282 282 283 283 284 284 chktex = stdenv.mkDerivation { 285 - pname = "texlive-chktex.bin"; 285 + pname = "chktex"; 286 286 inherit (texlive.pkgs.chktex) version; 287 287 288 288 inherit (common) src; ··· 303 303 # the sources used by TL are stored in the source TL repo 304 304 # for details see https://wiki.contextgarden.net/Building_LuaMetaTeX_for_TeX_Live 305 305 context = stdenv.mkDerivation rec { 306 - pname = "texlive-context.bin"; 306 + pname = "luametatex"; 307 307 version = "2.10.08"; 308 308 309 309 src = fetchurl { ··· 323 323 }; 324 324 325 325 dvisvgm = stdenv.mkDerivation { 326 - pname = "texlive-dvisvgm.bin"; 326 + pname = "dvisvgm"; 327 327 inherit (texlive.pkgs.dvisvgm) version; 328 328 329 329 inherit (common) src; ··· 368 368 369 369 370 370 dvipng = stdenv.mkDerivation { 371 - pname = "texlive-dvipng.bin"; 371 + pname = "dvipng"; 372 372 inherit (texlive.pkgs.dvipng) version; 373 373 374 374 inherit (common) src; ··· 432 432 inherit biber-ms; 433 433 bibtexu = bibtex8; 434 434 bibtex8 = stdenv.mkDerivation { 435 - pname = "texlive-bibtex-x.bin"; 435 + pname = "bibtex-x"; 436 436 inherit (texlive.pkgs.bibtexu) version; 437 437 438 438 inherit (common) src; ··· 450 450 451 451 452 452 xdvi = stdenv.mkDerivation { 453 - pname = "texlive-xdvi.bin"; 453 + pname = "xdvi"; 454 454 inherit (texlive.pkgs.xdvi) version; 455 455 456 456 inherit (common) src; ··· 474 474 }; 475 475 476 476 xpdfopen = stdenv.mkDerivation { 477 - pname = "texlive-xpdfopen.bin"; 477 + pname = "xpdfopen"; 478 478 inherit (texlive.pkgs.xpdfopen) version; 479 479 480 480 inherit (common) src; ··· 492 492 { 493 493 494 494 xindy = stdenv.mkDerivation { 495 - pname = "texlive-xindy.bin"; 495 + pname = "xindy"; 496 496 inherit (texlive.pkgs.xindy) version; 497 497 498 498 inherit (common) src;
+8 -13
pkgs/tools/typesetting/tex/texlive/build-texlive-package.nix
··· 99 99 # tlpkg is not a true container but a subfolder of the run container 100 100 urlName = pname + (lib.optionalString (tlType != "run" && tlType != "tlpkg") ".${tlType}"); 101 101 urls = map (up: "${up}/archive/${urlName}.r${toString revision}.tar.xz") mirrors; 102 - # TODO switch to simpler "${name}-${tlOutputName}" (requires new fixed hashes) 103 - container = runCommand "texlive-${pname}${lib.optionalString (tlType != "run") ".${tlType}"}-${version}${extraVersion}" 102 + container = runCommand "${name}-${tlOutputName}" 104 103 ({ 105 104 src = fetchurl { inherit urls sha512; }; 106 - # save outputName as fixed output derivations cannot change nor override outputName 107 - passthru = passthru // { inherit tlOutputName; }; 108 - # TODO remove tlType from derivation (requires a rebuild) 109 - inherit meta stripPrefix tlType; 105 + inherit passthru; 106 + # save outputName, since fixed output derivations cannot change nor override outputName 107 + inherit meta stripPrefix tlOutputName; 110 108 } // lib.optionalAttrs (fixedHash != null) { 111 109 outputHash = fixedHash; 112 110 outputHashAlgo = "sha256"; ··· 114 112 }) 115 113 ('' 116 114 mkdir "$out" 117 - if [[ "$tlType" == "tlpkg" ]]; then 115 + if [[ "$tlOutputName" == "tlpkg" ]]; then 118 116 tar -xf "$src" \ 119 117 --strip-components=1 \ 120 118 -C "$out" --anchored --exclude=tlpkg/tlpobj --keep-old-files \ ··· 154 152 tlu = texliveBinaries.luatex; 155 153 }; 156 154 157 - # TODO switch to simpler "${name}" (requires a rebuild) 158 - bin = runCommand "texlive-${pname}.bin-${version}" 155 + bin = runCommand "${name}" 159 156 { 160 157 inherit meta; 161 158 passthru = passthru // { tlOutputName = "out"; }; ··· 183 180 ''; 184 181 185 182 # build man, info containers 186 - # TODO switch to simpler "${name}-man" (requires a rebuild) 187 - man = builtins.removeAttrs (runCommand "texlive-${pname}.man-${version}${extraVersion}" 183 + man = builtins.removeAttrs (runCommand "${name}-man" 188 184 { 189 185 inherit meta texdoc; 190 186 passthru = passthru // { tlOutputName = "man"; }; ··· 194 190 ln -s {"$texdoc"/doc,"$out"/share}/man 195 191 '') [ "out" ] // lib.optionalAttrs hasBinfiles { out = bin; }; 196 192 197 - # TODO switch to simpler "${name}-info" (requires a rebuild) 198 - info = builtins.removeAttrs (runCommand "texlive-${pname}.info-${version}${extraVersion}" 193 + info = builtins.removeAttrs (runCommand "${name}-info" 199 194 { 200 195 inherit meta texdoc; 201 196 passthru = passthru // { tlOutputName = "info"; };