23.05 # utsushi - imagescan #error "SANE installation violates versioning portability constraints

  • system: "x86_64-linux"
  • host os: Linux 5.15.112, NixOS, 22.11 (Raccoon), 22.11.4286.7dc71aef32e
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.11.1
  • channels(root): "nixgl, nixos-23.05, nixos-hardware"
  • channels(usera): ""
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

In file included from backend.cpp:56:
version.hpp:41:2: error: #error "SANE installation violates versioning portability constraints."
   41 | #error "SANE installation violates versioning portability constraints."
      |  ^~~~~
make[3]: *** [Makefile:637: backend.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/build/source/sane'
make[2]: *** [Makefile:652: all-recursive] Error 1
make[2]: Leaving directory '/build/source/sane'
make[1]: *** [Makefile:619: all-recursive] Error 1
make[1]: Leaving directory '/build/source'
make: *** [Makefile:527: all] Error 2
error: builder for '/nix/store/p1gywyab2nwwr2gas2ghi44nw9267503-imagescan-3.65.0.drv' failed with exit code 2;
       last 10 log lines:
       >    41 | #error "SANE installation violates versioning portability constraints."
       >       |  ^~~~~
       > make[3]: *** [Makefile:637: backend.lo] Error 1
       > make[3]: *** Waiting for unfinished jobs....
       > make[3]: Leaving directory '/build/source/sane'
       > make[2]: *** [Makefile:652: all-recursive] Error 1
       > make[2]: Leaving directory '/build/source/sane'
       > make[1]: *** [Makefile:619: all-recursive] Error 1
       > make[1]: Leaving directory '/build/source'
       > make: *** [Makefile:527: all] Error 2
       For full logs, run 'nix log /nix/store/p1gywyab2nwwr2gas2ghi44nw9267503-imagescan-3.65.0.drv'.

How to solve this issue?

I had the same problem. For reference: sane-backends 1.1 compatibility (#108) · Issues · utsushi / utsushi · GitLab.
Using utsushi from nixos-unstable channel worked for me.