Enable sane-airscan and wrap Simple Scan

Add avahi, ipp-usb, udev (with sane‑airscan) and saned support.
Configure `sane` to enable extra backends (sane‑airscan) and disable the
default ESCL backend.
Override `simple-scan` to wrap its binary with an LD_LIBRARY_PATH that
includes `/etc/sane-libs`.
This commit is contained in:
2026-07-09 20:28:07 +02:00
parent f8ffcba766
commit 2a1bc9e807
2 changed files with 22 additions and 2 deletions
+8 -1
View File
@@ -76,7 +76,14 @@
notify = notify-client;
boxes = gnome-boxes;
switcheroo = switcheroo;
simpleScan = simple-scan;
simpleScan = simple-scan.overrideAttrs (old: {
postFixup =
(old.postFixup or "")
+ ''
wrapProgram $out/bin/simple-scan \
--prefix LD_LIBRARY_PATH : "/etc/sane-libs"
'';
});
};
in {
imports = builtins.attrValues (builtins.mapAttrs mkPackage packages);