summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@scratchpost.org>2020-01-10 00:25:50 +0100
committerDanny Milosavljevic <dannym@scratchpost.org>2020-01-10 00:25:50 +0100
commitafc7882f2d7765954c255922a39e20400c540376 (patch)
tree82e32a78cf20563f572bd731cdb9db4a7f8ee28a /gnu/packages
parent02ebbca82f1be09f2f7f5e70de792d9fae0ca30c (diff)
downloadguix-afc7882f2d7765954c255922a39e20400c540376.tar.gz
gnu: hplip: Fix scanner model detection.
* gnu/packages/cups.scm (hplip)[arguments]<#:phases>[install-models-dat]: New
phase.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/cups.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm
index 8f3cdf6211..0adca9addb 100644
--- a/gnu/packages/cups.scm
+++ b/gnu/packages/cups.scm
@@ -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,