summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim@guixotic.coop>2025-11-18 23:29:56 +0900
committerMaxim Cournoyer <maxim@guixotic.coop>2025-11-19 09:42:13 +0900
commit9c8fa8e68a1cbdd7d5212dc1eaa94cb7cad3729e (patch)
tree0a171080ca87505c5d885d6866e4b83423b7943e
parent93177e35e3eac86937a88bc23f1600c5595bc426 (diff)
gnu: info-reader: Add Zstd support.
* gnu/packages/texinfo.scm (info-reader) [#:phases] {absolute-binary-path}: Patch file name of unzstd command. {keep-only-info-reader}: Delete trailing #t. [inputs]: Add zstd. Change-Id: I9f5ed3260c890d87ea8ced59736311ad72422359
-rw-r--r--gnu/packages/texinfo.scm11
1 files changed, 6 insertions, 5 deletions
diff --git a/gnu/packages/texinfo.scm b/gnu/packages/texinfo.scm
index 09e1e428d97..bad74f36370 100644
--- a/gnu/packages/texinfo.scm
+++ b/gnu/packages/texinfo.scm
@@ -10,6 +10,7 @@
10;;; Copyright © 2020, 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org> 10;;; Copyright © 2020, 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
11;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be> 11;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
12;;; Copyright © 2022 ( <paren@disroot.org> 12;;; Copyright © 2022 ( <paren@disroot.org>
13;;; Copyright © 2025 Maxim Cournoyer <maxim@guixotic.coop>
13;;; 14;;;
14;;; This file is part of GNU Guix. 15;;; This file is part of GNU Guix.
15;;; 16;;;
@@ -233,8 +234,9 @@ is on expressing the content semantically, avoiding physical markup commands.")
233 (add-after 'unpack 'absolute-binary-path 234 (add-after 'unpack 'absolute-binary-path
234 (lambda* (#:key inputs #:allow-other-keys) 235 (lambda* (#:key inputs #:allow-other-keys)
235 (substitute* "info/filesys.c" 236 (substitute* "info/filesys.c"
236 (("gunzip") (search-input-file inputs "/bin/gunzip")) 237 (("gunzip") (search-input-file inputs "bin/gunzip"))
237 (("gzip") (search-input-file inputs "/bin/gzip"))))) 238 (("gzip") (search-input-file inputs "bin/gzip"))
239 (("unzstd") (search-input-file inputs "bin/unzstd")))))
238 (add-after 'install 'keep-only-info-reader 240 (add-after 'install 'keep-only-info-reader
239 (lambda* (#:key outputs #:allow-other-keys) 241 (lambda* (#:key outputs #:allow-other-keys)
240 ;; Remove everything but 'bin/info' and associated 242 ;; Remove everything but 'bin/info' and associated
@@ -252,14 +254,13 @@ is on expressing the content semantically, avoiding physical markup commands.")
252 (with-directory-excursion (string-append out "/share") 254 (with-directory-excursion (string-append out "/share")
253 (for-each delete-file-recursively 255 (for-each delete-file-recursively
254 (fold delete (files) 256 (fold delete (files)
255 '("info" "locale")))) 257 '("info" "locale"))))))))))
256 #t))))))
257 #:disallowed-references ,(list (this-package-input "perl")) 258 #:disallowed-references ,(list (this-package-input "perl"))
258 #:modules ((ice-9 ftw) (srfi srfi-1) 259 #:modules ((ice-9 ftw) (srfi srfi-1)
259 ,@%default-gnu-modules))) 260 ,@%default-gnu-modules)))
260 (synopsis "Standalone Info documentation reader") 261 (synopsis "Standalone Info documentation reader")
261 (inputs (modify-inputs (package-inputs texinfo) 262 (inputs (modify-inputs (package-inputs texinfo)
262 (prepend gzip))))) 263 (prepend gzip zstd)))))
263 264
264(define-public texi2html 265(define-public texi2html
265 (package 266 (package