summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-02-14 10:39:36 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-02-14 10:52:43 +0000
commita8e44804802b65cb27736952bf6ad092113e398a (patch)
treeb878fc45c125a7fb92e92a827c1681c8f92b9f02
parent2fec3ddd780d8bc319a1da993247db9a90964735 (diff)
gnu: ipp-usb: Install man and udev.
* gnu/packages/printers.scm (ipp-usb) [arguments] <phases>: Add 'install-manual-page and 'install-udev-rules. [native-inputs]: Remove ronn; add go-github-com-go-md2man. Change-Id: Ie158295ead9d9791e5e99161f93428d995d76a21
-rw-r--r--gnu/packages/printers.scm27
1 files changed, 22 insertions, 5 deletions
diff --git a/gnu/packages/printers.scm b/gnu/packages/printers.scm
index 15d341e4a85..8b0c0d92504 100644
--- a/gnu/packages/printers.scm
+++ b/gnu/packages/printers.scm
@@ -2,6 +2,7 @@
2;;; Copyright © 2018 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2018 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> 3;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
4;;; Copyright © 2024 Herman Rimm <herman@rimm.ee> 4;;; Copyright © 2024 Herman Rimm <herman@rimm.ee>
5;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.com>
5;;; 6;;;
6;;; This file is part of GNU Guix. 7;;; This file is part of GNU Guix.
7;;; 8;;;
@@ -54,16 +55,32 @@
54 (build-system go-build-system) 55 (build-system go-build-system)
55 (arguments 56 (arguments
56 (list 57 (list
57 ;; TODO: The project provides manpages and udev rules, review them and
58 ;; install in the next update cycle.
59 #:install-source? #f 58 #:install-source? #f
60 #:import-path "github.com/OpenPrinting/ipp-usb")) 59 #:import-path "github.com/OpenPrinting/ipp-usb"
60 #:phases
61 #~(modify-phases %standard-phases
62 (add-after 'install 'install-manual-page
63 (lambda* (#:key import-path #:allow-other-keys)
64 (with-directory-excursion (string-append "src/" import-path)
65 (let* ((man (string-append #$output "/share/man/man8")))
66 (mkdir-p man)
67 (invoke "go-md2man"
68 "-in" "ipp-usb.8.md"
69 "-out" (string-append man "/ipp-usb.8"))))))
70 (add-after 'install 'install-udev-rules
71 (lambda* (#:key import-path #:allow-other-keys)
72 (with-directory-excursion (string-append "src/" import-path)
73 (substitute* "systemd-udev/71-ipp-usb.rules"
74 (("systemd") "shephard")
75 ((", ENV\\{SYSTEMD_WANTS\\}\\+=\"ipp-usb.service\"") ""))
76 (install-file "systemd-udev/71-ipp-usb.rules"
77 (string-append #$output "/lib/udev/rules.d"))))))))
61 (inputs 78 (inputs
62 (list avahi libusb)) 79 (list avahi libusb))
63 (native-inputs 80 (native-inputs
64 (list go-github-com-openprinting-goipp 81 (list go-github-com-openprinting-goipp
65 pkg-config 82 go-github-com-go-md2man
66 ronn)) 83 pkg-config))
67 (home-page "https://github.com/OpenPrinting/ipp-usb") 84 (home-page "https://github.com/OpenPrinting/ipp-usb")
68 (synopsis "HTTP reverse proxy, backed by the IPP-over-USB connection") 85 (synopsis "HTTP reverse proxy, backed by the IPP-over-USB connection")
69 (description 86 (description