From 04120f69dde0f00e3a0360b2eda638381602b6c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Tue, 23 Sep 2025 00:33:10 +0200 Subject: [PATCH] gnu: Add lhs2tex. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/haskell-apps.scm (lhs2tex): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/haskell-apps.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/haskell-apps.scm b/gnu/packages/haskell-apps.scm index 43a1fdca2286235aa99dee216d85b209d785dde6..def3a90d5497c66438163ce163bb14fa65343423 100644 --- a/gnu/packages/haskell-apps.scm +++ b/gnu/packages/haskell-apps.scm @@ -623,6 +623,29 @@ with CSS and mouseover annotations, XHTML 1.0 with inline CSS styling, LaTeX, and mIRC chat codes.") (license license:bsd-3))) +(define-public lhs2tex + (package + (name "lhs2tex") + (version "1.25") + (source + (origin + (method url-fetch) + (uri (hackage-uri "lhs2tex" version)) + (sha256 + (base32 "0cf66z6mgadgqd1xs5b6gw8l9rkwgbfsc5czwdiapn7ichi26qyj")))) + (build-system haskell-build-system) + (properties '((upstream-name . "lhs2tex"))) + (inputs (list ghc-regex-compat)) + (home-page "https://github.com/kosmikus/lhs2tex") + (synopsis "Preprocessor for typesetting Haskell sources with LaTeX") + (description + "This tool is primarily intended for people who want to write articles or +books using LaTeX that contain some Haskell code. It works on literate Haskell +documents where the non-Haskell parts form essentially a valid LaTeX document, +then processes the Haskell code in the document and replaces it with formatted +LaTeX output.") + (license license:gpl2+))) + (define-public kmonad ;; Project is active, but no new releases exist. Pick current master ;; HEAD as of 2024-08-18.