diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-03-22 14:47:10 -0400 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-08-31 10:44:22 +0200 |
commit | dfd18d0d751c06c8e9e93059e7a6c4fca363cc76 (patch) | |
tree | 43e4fba4a35144f1c7e5a7eb13631101400bbd4a /gnu/packages | |
parent | c9666c120b8e40321d6044f572533e160c1e0351 (diff) | |
download | guix-dfd18d0d751c06c8e9e93059e7a6c4fca363cc76.tar guix-dfd18d0d751c06c8e9e93059e7a6c4fca363cc76.tar.gz |
build: gnu-build-system: Compress man pages with zstd.
The aim is to improve the efficiency of computing the man pages database,
which must decompress the man pages. Zstd is faster than gzip, especially for
decompression, and has a similar compression ratio.
* gnu/packages/commencement.scm (%final-inputs): Add zstd.
* guix/build/gnu-build-system.scm
(compress-documentation) Update doc.
<info-compressor, info-compressor-flags, man-compressor, man-compressor-flags>
<man-compressor-file-extension>: New arguments.
<compressed-documentation-extension>: Rename argument to...
<info-compressor-file-extension>: ... this. Add an 'extension' argument to
the retarget-symlink nested procedure. Use new arguments in nested
'maybe-compress' procedure.
Reviewed-by: Ludovic Courtès <ludo@gnu.org>
Change-Id: Ibaad4658f8e5151633714d263d9198f56d255020
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/commencement.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index d73e9f9839..8e6340bcb0 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm @@ -3492,7 +3492,8 @@ exec ~a/bin/~a-~a -B~a/lib -Wl,-dynamic-linker -Wl,~a/~a \"$@\"~%" (native-inputs (list (if (target-hurd?) glibc-utf8-locales-final/hurd - glibc-utf8-locales-final))))))) + glibc-utf8-locales-final))))) + ("zstd" ,zstd))) ("sed" ,sed-final) ("grep" ,grep-final) ("xz" ,xz-final) |