diff options
author | Aria Nolan <aria@chytrid.org> | 2024-06-10 20:31:59 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2024-06-10 20:31:59 +0200 |
commit | 1035dfbadbced6bd90522cdea413202f009170c2 (patch) | |
tree | 5cfa538310ba0a247df45c326cc605098735ab1b /gnu/packages | |
parent | df5648daa1a5d097a430131bbff353b865b476b6 (diff) | |
download | guix-1035dfbadbced6bd90522cdea413202f009170c2.tar guix-1035dfbadbced6bd90522cdea413202f009170c2.tar.gz |
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
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/tex.scm | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 4e46c1a898..828bcde0e2 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -38508,8 +38508,15 @@ style file.") "1k2d09z2my38nhxhzdq53jg4alzg5jzirdsb1qa7szm3dya46xgm"))) (outputs '("out" "doc")) (build-system texlive-build-system) - (arguments (list #:link-scripts #~(list "latexindent.pl"))) - (inputs (list perl)) + (arguments + (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") (synopsis "Indent a LaTeX document, highlighting the programming structure") (description |