summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2026-01-16 13:56:46 +0100
committerLudovic Courtès <ludo@gnu.org>2026-02-06 20:49:02 +0100
commitb61e6847415fbeaea8a3ed16471a5ea8b3fe77d6 (patch)
tree432778616b3c5756bc3c27b1f8f0b40d9e128e05 /gnu
parentd98cf2b1b4ec5b4b5b317ddb7ef66613e533feea (diff)
gnu: texlive-minted: Use packaged version of python-latexminted.
Fixes #2551 * gnu/packages/tex.scm (texlive-minted) [arguments]<phases>: Add 'fix-paths phase to refer to latexminted. [inputs]: Add python-latexminted. [source]<snippet>: Remove vendored scripts and wheel files. Change-Id: If17269ac864feb652021f0b0474dc3aeac3d59bd Signed-off-by: Ludovic Courtès <ludo@gnu.org> Merges: #5678
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/tex.scm29
1 files changed, 15 insertions, 14 deletions
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index aa2c74645ad..3d453e0679c 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -84219,26 +84219,27 @@ configuration of its own fixed names, using @file{.mld} files.")
(file-name (git-file-name name version))
(sha256
(base32
- "1yxiy8jhrbjj0ixl5rm5s35sdx3y6qq98x704w761rsnva282q8c"))))
+ "1yxiy8jhrbjj0ixl5rm5s35sdx3y6qq98x704w761rsnva282q8c"))
+ (modules '((guix build utils)))
+ (snippet
+ ;; Remove scripts/ directory containing Python scripts and
+ ;; wheels. Install these via propagated-inputs instead.
+ #~(delete-file-recursively "scripts"))))
(outputs '("out" "doc"))
(build-system texlive-build-system)
(arguments
(list
- #:link-scripts #~(list "latexminted.py")
#:phases
#~(modify-phases %standard-phases
- (add-after 'link-scripts 'wrap-latexminted
- ;; `latexminted' relies on SELFAUTOLOC to locate `kpsewhich', but
- ;; this variable is bogus in Guix because binaries are scattered
- ;; across multiple directories. This phase sets SELFAUTOLOC to
- ;; the specific directory containing `kpsewhich'.
- (lambda* (#:key inputs outputs #:allow-other-keys)
- ;; XXX: Use `wrap-program' rather than `wrap-script' because
- ;; with the latter, ".whl" files are not properly recognized.
- (wrap-program (search-input-file outputs "bin/latexminted")
- `("SELFAUTOLOC" =
- (,(dirname (search-input-file inputs "bin/kpsewhich"))))))))))
- (inputs (list python))
+ (add-after 'unpack 'fix-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "source/latex/minted/minted.dtx"
+ (("detokenize\\{latexminted\\}")
+ (string-append
+ "detokenize{"
+ (search-input-file inputs "/bin/latexminted")
+ "}"))))))))
+ (inputs (list python python-latexminted))
(propagated-inputs
(list texlive-catchfile
texlive-etoolbox