Merge pull request #319840 from nova-r/new-plugin-epkowa

epkowa: add plugin for Perfection V100 Photo
This commit is contained in:
Guillaume Girol 2024-06-14 18:28:36 +02:00 committed by GitHub
commit a5ca25f03d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -251,6 +251,38 @@ let plugins = {
meta = common_meta // { description = "iscan esci s80 plugin for " + passthru.hw; }; meta = common_meta // { description = "iscan esci s80 plugin for " + passthru.hw; };
}; };
s600 = stdenv.mkDerivation rec {
name = "iscan-gt-s600-bundle";
version = "2.30.4";
src = fetchurl {
urls = [
"https://download2.ebz.epson.net/iscan/plugin/gt-s600/rpm/x64/iscan-gt-s600-bundle-${version}.x64.rpm.tar.gz"
"https://web.archive.org/web/20240614120113/https://download2.ebz.epson.net/iscan/plugin/gt-s600/rpm/x64/iscan-gt-s600-bundle-${version}.x64.rpm.tar.gz"
];
sha256 = "fe1356b1d5c40bc5ac985a5693166efb9e5049a78b412f49c385eb503eadf2c6";
};
nativeBuildInputs = [ autoPatchelfHook rpm ];
installPhase = ''
cd plugins
${rpm}/bin/rpm2cpio iscan-plugin-gt-s600-*.x86_64.rpm | ${cpio}/bin/cpio -idmv
mkdir $out
cp -r usr/share $out
cp -r usr/lib64 $out/lib
mv $out/share/iscan $out/share/esci
mv $out/lib/iscan $out/lib/esci
'';
passthru = {
registrationCommand = ''
$registry --add interpreter usb 0x04b8 0x012d "$plugin/lib/esci/libesint66 $plugin/share/esci/esfw66.bin"
'';
hw = "GT-F650, GT-S600, Perfection V10, Perfection V100 Photo";
};
meta = common_meta // { description = "iscan gt-s600 plugin for " + passthru.hw; };
};
s650 = stdenv.mkDerivation rec { s650 = stdenv.mkDerivation rec {
name = "iscan-gt-s650-bundle"; name = "iscan-gt-s650-bundle";
version = "2.30.4"; version = "2.30.4";