guix_mirror_bot pushed a commit to branch mesa-updates
in repository guix.
commit d0afa6ed019824424970382a37bca5552a491d9a
Author: Sergey Trofimov <[email protected]>
AuthorDate: Thu Jun 12 12:39:42 2025 +0200
gnu: hplip: Make SANE backend truly pluggable.
* gnu/packages/cups.scm (hplip)[#:phases]
<move-sane-config-to-dll.d>: Fix dynamic loading.
Change-Id: I5ae3edabf8ccb87d547990f641fe42d2260e9080
---
gnu/packages/cups.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm
index 7035e52a82..ad9779cb2e 100644
--- a/gnu/packages/cups.scm
+++ b/gnu/packages/cups.scm
@@ -704,6 +704,14 @@ should only be used as part of the Guix cups-pk-helper
service.")
(string-append "rulessystemdir = " out
"/lib/systemd/system"))
(("/etc/sane.d")
(string-append out "/etc/sane.d"))))))
+ (add-after 'install 'move-sane-config-to-dll.d
+ (lambda _
+ ;; move dll.conf to dll.d - the directory intended for 3rd-party
+ ;; backend configurations.
+ (let ((dll.d (string-append #$output "/etc/sane.d/dll.d"))
+ (dll.conf (string-append #$output "/etc/sane.d/dll.conf")))
+ (mkdir-p dll.d)
+ (rename-file dll.conf (string-append dll.d "/hpaio")))))
(add-after 'install 'install-models-dat
(lambda* (#:key outputs #:allow-other-keys)
(install-file "data/models/models.dat"