NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.19k stars 14.19k forks source link

simple-scan: Scanner is not detected anymore on non-NixOS system that has sane set up #271989

Open 573 opened 11 months ago

573 commented 11 months ago

Describe the bug

simple-scan (as of v44.0+) is started, but does not find the connected scanner.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install the sane package on the non-Nixos host usually the sane-backends equivalent to a NixOS
  2. simple-scan & (flake using nixos-23.11 branch)
  3. Wait for physically connected scanner to be detected

Expected behavior

Scanner is detected.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

When I override using v42.5 of simple-scan the scanner is detected.

Also, there is another video device reported by scanimage:

scanimage -L
device `v4l:/dev/video0' is a Noname Integrated Camera: Integrated C virtual device
device `plustek:libusb:003:002' is a Canon CanoScan N1240U/LiDE30 flatbed scanner

Notify maintainers

@jtojnar

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here

this path will be fetched (0.01 MiB download, 0.05 MiB unpacked): /nix/store/wr08yanv2bjrphhi5aai12hf2qz5kvic-stdenv-linux copying path '/nix/store/wr08yanv2bjrphhi5aai12hf2qz5kvic-stdenv-linux' from 'https://cache.nixos.org'...

Add a :+1: reaction to issues you find important.

EDITED: Added as additional context the assumption that the host OS' sane libraries are installed to provide the udev entries, i. e. on Archlinux this is pacman -S sane. Also changed the title accordingly. Also corrected the version number of the simple-scan nix package that would still be able to pickup the host scanner setup.

nixos-discourse commented 11 months ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/help-with-a-wireless-scanner/36439/4