gnu: texlive-digestif: Fix build.

* gnu/packages/tex.scm (texlive-digestif):
[arguments]: <#:phases>: Add 'fix-data-path phase.
This hardcodes the path for 'digestif.zip', which was not being found
previously.

Change-Id: I2884185d0daa8919dd72e8b9055eb3988eb40f5d
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Ada Stevenson 2024-08-29 16:26:53 +08:00 committed by Ludovic Courtès
parent de96a26096
commit 6a68c61676
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -41866,7 +41866,16 @@ (define-public texlive-digestif
"1s7nmbjxpa6klmh0cc6g4s6vd9wmlv4dxp51xb4b872hrj510zbi")))) "1s7nmbjxpa6klmh0cc6g4s6vd9wmlv4dxp51xb4b872hrj510zbi"))))
(outputs '("out" "doc")) (outputs '("out" "doc"))
(build-system texlive-build-system) (build-system texlive-build-system)
(arguments (list #:link-scripts #~(list "digestif.texlua"))) (arguments (list #:link-scripts #~(list "digestif.texlua")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-data-path
(lambda _
(substitute* "scripts/digestif/digestif.texlua"
(("(local archive = )(.*)$" all beginning end)
(string-append beginning "\"" #$output
"/share/texmf-dist/scripts/digestif/digestif.zip\""
"\n"))))))))
(home-page "https://ctan.org/pkg/digestif") (home-page "https://ctan.org/pkg/digestif")
(synopsis "Editor plugin for LaTeX, ConTeXt etc.") (synopsis "Editor plugin for LaTeX, ConTeXt etc.")
(description (description