[Nix-dev] Nix expression for closed-source scanner driver

Bjørn Forsman bjorn.forsman at gmail.com
Tue Dec 16 07:50:05 CET 2014


On 16 December 2014 at 02:09, Peter Jones <mlists at pmade.com> wrote:
> I'm working on a Nix expression to install a proprietary scanner driver
> that is available as a Debian package.  After using `nix-env' to install
> the package I'm still not able to see my scanner in the list produced by
> `scanimage -L' or `sane-find-scanner'.
>
> Here's the expression (WIP):
>
>   https://github.com/pjones/nixpkgs/blob/pkg/brother/pkgs/misc/drivers/brother/dsseries.nix
>
> Something interesting to note is that device files for the scanner show
> up in /dev/bsg/ instead of the usual /dev/sg*.  I think that has
> something to do with the scanner being detected as a disk.
>
> I did have this working under Debian before switching to NixOS.  I also
> still have a Debian install if I need to test anything or figure out
> what's going on.
>
> Any hint/tips would be appreciated.  Thanks.

Maybe you must patchelf some binaries? See if this finds something
that points to (nonexisting) /usr/... or similar:

find $out | while read f; do patchelf --print-rpath "$f"; done

Best regards,
Bjørn Forsman


More information about the nix-dev mailing list