mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: sane-backends: Support USB scanners.
* gnu/packages/scanner.scm (sane-backends): Build with libusb-compat as an input and install a udev rule to give users access to scanners. Modified-By: Mark H Weaver <mhw@netris.org>
This commit is contained in:
parent
e0477b7391
commit
3b71b36c08
1 changed files with 20 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright 2014 John Darrington <jmd@gnu.org>
|
;;; Copyright © 2014 John Darrington <jmd@gnu.org>
|
||||||
|
;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -20,6 +21,8 @@ (define-module (gnu packages scanner)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
#:use-module (guix download)
|
#:use-module (guix download)
|
||||||
#:use-module (guix build-system gnu)
|
#:use-module (guix build-system gnu)
|
||||||
|
#:use-module (gnu packages pkg-config)
|
||||||
|
#:use-module (gnu packages libusb)
|
||||||
#:use-module ((guix licenses)
|
#:use-module ((guix licenses)
|
||||||
#:prefix licence:))
|
#:prefix licence:))
|
||||||
|
|
||||||
|
@ -36,8 +39,23 @@ (define-public sane-backends
|
||||||
(base32
|
(base32
|
||||||
"0ba68m6bzni54axjk15i51rya7hfsdliwvqyan5msl7iaid0iir7"))))
|
"0ba68m6bzni54axjk15i51rya7hfsdliwvqyan5msl7iaid0iir7"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
|
(native-inputs
|
||||||
|
`(("pkg-config" ,pkg-config)))
|
||||||
|
(inputs
|
||||||
|
`(("libusb-compat" ,libusb-compat)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f))
|
`(#:tests? #f
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after
|
||||||
|
'install 'install-udev-rules
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
(mkdir-p (string-append out "/lib/udev/rules.d"))
|
||||||
|
(copy-file "tools/udev/libsane.rules"
|
||||||
|
(string-append out
|
||||||
|
"/lib/udev/rules.d/"
|
||||||
|
"60-libsane.rules"))))))))
|
||||||
;; It would seem that tests are not maintained - fails with
|
;; It would seem that tests are not maintained - fails with
|
||||||
;; the following:
|
;; the following:
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue