gnu: Add hplip-minimal.
* gnu/packages/cups.scm (hplip-minimal): New variable. * gnu/packages/scanner.scm (sane-backends)[inputs]: Replace hplip with hplip-minimal. * doc/guix.texi (Printing Services): Change example code to use hplip-minimal in place of hplip. Add note explaining when use hplip.
This commit is contained in:
parent
39a57afc42
commit
8e1895964f
|
@ -12156,7 +12156,7 @@ secure connections to the print server.
|
||||||
|
|
||||||
Suppose you want to enable the Web interface of CUPS and also add
|
Suppose you want to enable the Web interface of CUPS and also add
|
||||||
support for Epson printers @i{via} the @code{escpr} package and for HP
|
support for Epson printers @i{via} the @code{escpr} package and for HP
|
||||||
printers @i{via} the @code{hplip} package. You can do that directly,
|
printers @i{via} the @code{hplip-minimal} package. You can do that directly,
|
||||||
like this (you need to use the @code{(gnu packages cups)} module):
|
like this (you need to use the @code{(gnu packages cups)} module):
|
||||||
|
|
||||||
@example
|
@example
|
||||||
|
@ -12164,9 +12164,13 @@ like this (you need to use the @code{(gnu packages cups)} module):
|
||||||
(cups-configuration
|
(cups-configuration
|
||||||
(web-interface? #t)
|
(web-interface? #t)
|
||||||
(extensions
|
(extensions
|
||||||
(list cups-filters escpr hplip))))
|
(list cups-filters escpr hplip-minimal))))
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
|
Note: If you wish to use the Qt5 based GUI which comes with the hplip
|
||||||
|
package then it is suggested that you install the @code{hplip} package,
|
||||||
|
either in your OS configuration file or as your user.
|
||||||
|
|
||||||
The available configuration parameters follow. Each parameter
|
The available configuration parameters follow. Each parameter
|
||||||
definition is preceded by its type; for example, @samp{string-list foo}
|
definition is preceded by its type; for example, @samp{string-list foo}
|
||||||
indicates that the @code{foo} parameter should be specified as a list of
|
indicates that the @code{foo} parameter should be specified as a list of
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
|
;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
|
||||||
;;; Copyright © 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2015, 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
|
;;; Copyright © 2015, 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
|
||||||
;;; Copyright © 2016 Danny Milosavljevic <dannym@scratchpost.org>
|
;;; Copyright © 2016 Danny Milosavljevic <dannym@scratchpost.org>
|
||||||
;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
|
;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
|
||||||
;;; Copyright © 2017 Mark H Weaver <mhw@netris.org>
|
;;; Copyright © 2017 Mark H Weaver <mhw@netris.org>
|
||||||
|
@ -46,7 +46,9 @@
|
||||||
#:use-module (guix build-system gnu)
|
#:use-module (guix build-system gnu)
|
||||||
#:use-module (guix download)
|
#:use-module (guix download)
|
||||||
#:use-module ((guix licenses) #:prefix license:)
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
#:use-module (guix packages))
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix utils)
|
||||||
|
#:use-module (srfi srfi-1))
|
||||||
|
|
||||||
(define-public cups-filters
|
(define-public cups-filters
|
||||||
(package
|
(package
|
||||||
|
@ -520,6 +522,19 @@ device-specific programs to convert and print many types of files.")
|
||||||
`(("perl" ,perl)
|
`(("perl" ,perl)
|
||||||
("pkg-config" ,pkg-config)))))
|
("pkg-config" ,pkg-config)))))
|
||||||
|
|
||||||
|
(define-public hplip-minimal
|
||||||
|
(package
|
||||||
|
(inherit hplip)
|
||||||
|
(name "hplip-minimal")
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments (package-arguments hplip)
|
||||||
|
((#:configure-flags cf)
|
||||||
|
``(,@(delete "--enable-qt5" ,cf)))))
|
||||||
|
(inputs
|
||||||
|
`(,@(fold alist-delete (package-inputs hplip)
|
||||||
|
'("python-pygobject" "python-pyqt"))))
|
||||||
|
(synopsis "GUI-less version of hplip")))
|
||||||
|
|
||||||
(define-public foomatic-filters
|
(define-public foomatic-filters
|
||||||
(package
|
(package
|
||||||
(name "foomatic-filters")
|
(name "foomatic-filters")
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
|
;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
|
||||||
;;; Copyright © 2016 Andy Patterson <ajpatter@uwaterloo.ca>
|
;;; Copyright © 2016 Andy Patterson <ajpatter@uwaterloo.ca>
|
||||||
;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
|
;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
|
;;; Copyright © 2018 Efraim Flashner <efraim@flashner.co.il>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -102,7 +103,7 @@ package contains the library, but no drivers.")
|
||||||
(inherit sane-backends-minimal)
|
(inherit sane-backends-minimal)
|
||||||
(name "sane-backends")
|
(name "sane-backends")
|
||||||
(inputs
|
(inputs
|
||||||
`(("hplip" ,(@ (gnu packages cups) hplip))
|
`(("hplip" ,(@ (gnu packages cups) hplip-minimal))
|
||||||
,@(package-inputs sane-backends-minimal)))
|
,@(package-inputs sane-backends-minimal)))
|
||||||
(arguments
|
(arguments
|
||||||
(substitute-keyword-arguments (package-arguments sane-backends-minimal)
|
(substitute-keyword-arguments (package-arguments sane-backends-minimal)
|
||||||
|
|
Loading…
Reference in New Issue