mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-13 06:36:37 -05:00
gnu: Add hplip-next.
* gnu/packages/cups.scm (hplip-next): New variable.
This commit is contained in:
parent
f3329764e2
commit
185e8ac8cc
1 changed files with 28 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
|||
;;; Copyright © 2017 Mark H Weaver <mhw@netris.org>
|
||||
;;; Copyright © 2017–2022 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
|
||||
;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
;;; Copyright © 2021, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -696,6 +696,33 @@ (define-public hplip
|
|||
(native-inputs
|
||||
(list perl pkg-config))))
|
||||
|
||||
;;; TODO: Integrate in base hplip package on core-updates.
|
||||
(define-public hplip-next
|
||||
(package
|
||||
(inherit hplip)
|
||||
(name "hplip")
|
||||
(version "3.21.10")
|
||||
(source (origin
|
||||
(inherit (package-source hplip))
|
||||
(uri (string-append "mirror://sourceforge/hplip/hplip/" version
|
||||
"/hplip-" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"0q3adcp8iygravp4bq4gw14jk20c5rhnawj1333qyw8yvlghw8yy"))))
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments hplip)
|
||||
((#:phases phases)
|
||||
#~(modify-phases #$phases
|
||||
(add-after 'unpack 'fix-more-hard-coded-file-names
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
;; Set the encoding to ISO-8859-1, as not all the files are
|
||||
;; readable as UTF-8.
|
||||
(with-fluids ((%default-port-encoding "ISO-8859-1"))
|
||||
(substitute* (find-files ".")
|
||||
(("/etc/hp/hplip.conf")
|
||||
(string-append (assoc-ref outputs "out")
|
||||
"/etc/hp/hplip.conf"))))))))))))
|
||||
|
||||
(define-public hplip-minimal
|
||||
(package/inherit hplip
|
||||
(name "hplip-minimal")
|
||||
|
|
Loading…
Reference in a new issue