1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: qman: Fix missing commands.

* gnu/packages/man.scm (qman)[arguments]<#:phases>: Add 'patch-paths' phase.
[inputs]: Add groff, man-db, and xdg-utils.

Fixes: guix/guix#6753
Merges: https://codeberg.org/guix/guix/pulls/6932
Change-Id: I359090e89c38bb6636635eb6e96cf95337a5716f
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Sughosha
2026-03-06 15:11:27 +05:30
committed by Sharlatan Hellseher
parent 4a3dccedac
commit 9dc5510e2e

View File

@@ -48,6 +48,7 @@
#:use-module (gnu packages curl)
#:use-module (gnu packages dbm)
#:use-module (gnu packages flex)
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages gawk)
#:use-module (gnu packages gettext)
#:use-module (gnu packages groff)
@@ -465,14 +466,41 @@ automatically.")
(list
#:out-of-source? #t
#:configure-flags
#~(list "-Dconfigdir=etc/xdg/qman")))
#~(list "-Dconfigdir=etc/xdg/qman")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-paths
(lambda _
(substitute* '("src/config_def.py"
"man/qman.1")
(("\\/usr\\/bin\\/man")
(string-append #$(this-package-input "man-db")
"/bin/man"))
(("\\/usr\\/bin\\/groff")
(string-append #$(this-package-input "groff")
"/bin/groff"))
(("\\/usr\\/bin\\/whatis")
(string-append #$(this-package-input "man-db")
"/bin/whatis"))
(("\\/usr\\/bin\\/apropos")
(string-append #$(this-package-input "man-db")
"/bin/apropos"))
(("\\/usr\\/bin\\/xdg\\\\-open")
(string-append #$(this-package-input "xdg-utils")
"/bin/xdg\\-open"))
(("\\/usr\\/bin\\/xdg\\\\-email")
(string-append #$(this-package-input "xdg-utils")
"/bin/xdg\\-email"))))))))
(native-inputs
(list cmake-minimal
pkg-config))
(inputs
(list cunit
groff
man-db
ncurses
python-cogapp
xdg-utils
zlib))
(home-page "https://github.com/plp13/qman")
(synopsis "Modern man page viewer for terminals")