gnu: texlive-latexindent: Fix runtime error.

* gnu/packages/tex.scm (texlive-latexindent)[arguments]<#:phases>: Wrap Perl
script so it can find Perl libraries.
[inputs]: Add PERL-FILE-HOMEDIR and PERL-YAML-TINY.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Change-Id: I428c20f0c8aa49cc8273f41512f37b3622347ecc
This commit is contained in:
Aria Nolan 2024-06-10 20:31:59 +02:00 committed by Nicolas Goaziou
parent df5648daa1
commit 1035dfbadb
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -38508,8 +38508,15 @@ (define-public texlive-latexindent
"1k2d09z2my38nhxhzdq53jg4alzg5jzirdsb1qa7szm3dya46xgm"))) "1k2d09z2my38nhxhzdq53jg4alzg5jzirdsb1qa7szm3dya46xgm")))
(outputs '("out" "doc")) (outputs '("out" "doc"))
(build-system texlive-build-system) (build-system texlive-build-system)
(arguments (list #:link-scripts #~(list "latexindent.pl"))) (arguments
(inputs (list perl)) (list #:link-scripts #~(list "latexindent.pl")
#:phases
#~(modify-phases %standard-phases
(add-after 'link-scripts 'wrap-perl-script
(lambda _
(wrap-program (string-append #$output "/bin/latexindent")
`("PERL5LIB" ":" prefix (,(getenv "PERL5LIB")))))))))
(inputs (list perl perl-file-homedir perl-yaml-tiny))
(home-page "https://ctan.org/pkg/latexindent") (home-page "https://ctan.org/pkg/latexindent")
(synopsis "Indent a LaTeX document, highlighting the programming structure") (synopsis "Indent a LaTeX document, highlighting the programming structure")
(description (description