me
/
guix
Archived
1
0
Fork 0

gnu: hplip: Fix scanner model detection.

* gnu/packages/cups.scm (hplip)[arguments]<#:phases>[install-models-dat]: New
phase.
master
Danny Milosavljevic 2020-01-10 00:25:50 +01:00
parent 02ebbca82f
commit afc7882f2d
No known key found for this signature in database
GPG Key ID: E71A35542C30BAA5
1 changed files with 7 additions and 0 deletions

View File

@ -537,6 +537,13 @@ should only be used as part of the Guix cups-pk-helper service.")
"/lib/systemd/system"))
(("/etc/sane.d")
(string-append out "/etc/sane.d"))))))
(add-after 'install 'install-models-dat
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(models-dir (string-append out
"/share/hplip/data/models")))
(install-file "data/models/models.dat" models-dir))
#t))
(add-after 'install 'wrap-binaries
;; Scripts in /bin are all symlinks to .py files in /share/hplip.
;; Symlinks are immune to the Python build system's 'WRAP phase,