mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: eudev: Add 'eudev-with-hwdb' variant that contains 'hwdb.bin'.
* gnu/packages/linux.scm (eudev-with-hwdb): New variable. (usbutils)[inputs]: Use it instead of EUDEV.
This commit is contained in:
parent
c5173d74d6
commit
e5d861f305
1 changed files with 16 additions and 1 deletions
|
@ -597,7 +597,7 @@ (define-public usbutils
|
|||
(build-system gnu-build-system)
|
||||
(inputs
|
||||
`(("libusb" ,libusb)
|
||||
("eudev" ,eudev)))
|
||||
("eudev" ,eudev-with-hwdb)))
|
||||
(native-inputs
|
||||
`(("pkg-config" ,pkg-config)))
|
||||
(home-page "http://www.linux-usb.org/")
|
||||
|
@ -1740,6 +1740,21 @@ (define-public eudev
|
|||
time.")
|
||||
(license license:gpl2+)))
|
||||
|
||||
(define-public eudev-with-hwdb
|
||||
;; TODO: Merge with 'eudev'.
|
||||
(package
|
||||
(inherit eudev)
|
||||
(name "eudev-with-hwdb")
|
||||
(arguments
|
||||
'(#:phases (modify-phases %standard-phases
|
||||
(add-after 'install 'build-hwdb
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
;; Build OUT/etc/udev/hwdb.bin. This allows 'lsusb' and
|
||||
;; similar tools to display product names.
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
(zero? (system* (string-append out "/bin/udevadm")
|
||||
"hwdb" "--update"))))))))))
|
||||
|
||||
(define-public lvm2
|
||||
(package
|
||||
(name "lvm2")
|
||||
|
|
Loading…
Reference in a new issue