|
2 | 2 | lib, |
3 | 3 | stdenv, |
4 | 4 | fetchurl, |
| 5 | + fetchzip, |
5 | 6 | fetchFromGitHub, |
6 | 7 | fetchpatch, |
7 | 8 | buildPackages, |
@@ -533,35 +534,42 @@ rec { |
533 | 534 | enableParallelBuilding = true; |
534 | 535 | }; |
535 | 536 |
|
536 | | - # the LuaMetaTeX engine (distributed since TeX Live 2023) must be built separately |
537 | | - # the sources used by TL are stored in the source TL repo |
538 | | - # for details see https://wiki.contextgarden.net/Building_LuaMetaTeX_for_TeX_Live |
539 | | - context = stdenv.mkDerivation rec { |
540 | | - pname = "luametatex"; |
541 | | - version = "2.11.07"; |
542 | | - |
543 | | - src = fetchurl { |
544 | | - name = "luametatex-${version}.tar.xz"; |
545 | | - url = "https://tug.org/svn/texlive/trunk/Master/source/luametatex-${version}.tar.xz?pathrev=75382&view=co"; |
546 | | - hash = "sha256-ou04WcKnyEJTkUV4HhlGwDTscdEJTflGv0cpN69qkWE="; |
547 | | - }; |
548 | | - |
549 | | - enableParallelBuilding = true; |
550 | | - nativeBuildInputs = [ |
551 | | - cmake |
552 | | - ninja |
553 | | - ]; |
| 537 | + # The LuaMetaTeX engine (distributed since TeX Live 2023) must be built separately. |
| 538 | + # For details on how TeX Live packages ConTeXt, see |
| 539 | + # https://github.com/gucci-on-fleek/context-packaging |
| 540 | + context = |
| 541 | + let |
| 542 | + # The latest release of the context-packaging repo before the CTAN version in tlpdb.nix |
| 543 | + # https://github.com/gucci-on-fleek/context-packaging |
| 544 | + context_packaging_release = "2025-06-12-14-21-B"; |
| 545 | + in |
| 546 | + stdenv.mkDerivation rec { |
| 547 | + pname = "luametatex"; |
| 548 | + version = "2.11.07"; |
| 549 | + |
| 550 | + src = fetchzip { |
| 551 | + name = "luametatex.src.zip"; |
| 552 | + url = "https://github.com/gucci-on-fleek/context-packaging/releases/download/${context_packaging_release}/luametatex.src.zip"; |
| 553 | + hash = "sha256-9TLTIUSqA3g8QP9EF+tQ4VfLLLQwMrbeXPPy58uFWDo="; |
| 554 | + stripRoot = false; |
| 555 | + }; |
554 | 556 |
|
555 | | - meta = with lib; { |
556 | | - description = "LUAMETATEX engine is a follow up on LUATEX and is again part of CONTEXT development"; |
557 | | - homepage = "https://www.pragma-ade.nl/luametatex-1.htm"; |
558 | | - license = licenses.gpl2Plus; |
559 | | - maintainers = with lib.maintainers; [ |
560 | | - apfelkuchen6 |
561 | | - xworld21 |
| 557 | + enableParallelBuilding = true; |
| 558 | + nativeBuildInputs = [ |
| 559 | + cmake |
| 560 | + ninja |
562 | 561 | ]; |
| 562 | + |
| 563 | + meta = with lib; { |
| 564 | + description = "LUAMETATEX engine is a follow up on LUATEX and is again part of CONTEXT development"; |
| 565 | + homepage = "https://www.pragma-ade.nl/luametatex-1.htm"; |
| 566 | + license = licenses.gpl2Plus; |
| 567 | + maintainers = with lib.maintainers; [ |
| 568 | + apfelkuchen6 |
| 569 | + xworld21 |
| 570 | + ]; |
| 571 | + }; |
563 | 572 | }; |
564 | | - }; |
565 | 573 |
|
566 | 574 | dvisvgm = stdenv.mkDerivation rec { |
567 | 575 | pname = "dvisvgm"; |
|
0 commit comments