diff options
author | rys ostrovid <nek0@nek0.eu> | 2020-12-25 21:10:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-25 21:10:36 +0100 |
commit | 357e0703f87eb37739641b55bda8b82683b40f04 (patch) | |
tree | 7d0f43b47476be483dcb8c6223d9b7603c51a4c2 /pkgs/misc/drivers | |
parent | fb48094f076f4538b510000488395b918830538d (diff) | |
download | nixlib-357e0703f87eb37739641b55bda8b82683b40f04.tar nixlib-357e0703f87eb37739641b55bda8b82683b40f04.tar.gz nixlib-357e0703f87eb37739641b55bda8b82683b40f04.tar.bz2 nixlib-357e0703f87eb37739641b55bda8b82683b40f04.tar.lz nixlib-357e0703f87eb37739641b55bda8b82683b40f04.tar.xz nixlib-357e0703f87eb37739641b55bda8b82683b40f04.tar.zst nixlib-357e0703f87eb37739641b55bda8b82683b40f04.zip |
epkowa: add support for 'Perfection V37/V370' scanners (#107584)
Diffstat (limited to 'pkgs/misc/drivers')
-rw-r--r-- | pkgs/misc/drivers/epkowa/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/misc/drivers/epkowa/default.nix b/pkgs/misc/drivers/epkowa/default.nix index eb88476432bf..9054c4c48f8a 100644 --- a/pkgs/misc/drivers/epkowa/default.nix +++ b/pkgs/misc/drivers/epkowa/default.nix @@ -65,6 +65,40 @@ let plugins = { }; meta = common_meta // { description = "Plugin to support " + passthru.hw + " scanner in sane"; }; }; + v370 = stdenv.mkDerivation rec { + name = "iscan-v370-bundle"; + version = "2.30.4"; + + src = fetchurl { + urls = [ + "https://download2.ebz.epson.net/iscan/plugin/perfection-v370/rpm/x64/iscan-perfection-v370-bundle-${version}.x64.rpm.tar.gz" + "https://web.archive.org/web/https://download2.ebz.epson.net/iscan/plugin/perfection-v370/rpm/x64/iscan-perfection-v370-bundle-${version}.x64.rpm.tar.gz" + ]; + sha256 = "1ff7adp9mha1i2ibllz540xkagpy8r757h4s3h60bgxbyzv2yggr"; + }; + + nativeBuildInputs = [ autoPatchelfHook rpm ]; + + installPhase = '' + cd plugins + ${rpm}/bin/rpm2cpio iscan-plugin-perfection-v370-*.x86_64.rpm | ${cpio}/bin/cpio -idmv + + + mkdir -p $out/share $out/lib + cp -r usr/share/{iscan-data,iscan}/ $out/share + cp -r usr/lib64/iscan $out/lib + mv $out/share/iscan $out/share/esci + mv $out/lib/iscan $out/lib/esci + ''; + + passthru = { + registrationCommand = '' + $registry --add interpreter usb 0x04b8 0x014a "$plugin/lib/esci/libiscan-plugin-perfection-v370 $plugin/share/esci/esfwdd.bin" + ''; + hw = "Perfection V37/V370"; + }; + meta = common_meta // { description = "Plugin to support " + passthru.hw + " scanner in sane"; }; + }; x770 = stdenv.mkDerivation rec { pname = "iscan-gt-x770-bundle"; version = "2.30.4"; |