Merge pull request #291382 from EduRenesto/epkowa-perfection-v550

epkowa: add plugin for Perfection V550 Photo
This commit is contained in:
Guillaume Girol 2024-02-25 18:18:08 +01:00 committed by GitHub
commit abc4653068
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -99,6 +99,35 @@ let plugins = {
};
meta = common_meta // { description = "Plugin to support " + passthru.hw + " scanner in sane"; };
};
v550 = stdenv.mkDerivation rec {
pname = "iscan-perfection-v550-bundle";
version = "2.30.4";
nativeBuildInputs = [ autoPatchelfHook rpm ];
src = fetchurl {
urls = [
"https://download2.ebz.epson.net/iscan/plugin/perfection-v550/rpm/x64/iscan-perfection-v550-bundle-${version}.x64.rpm.tar.gz"
"https://web.archive.org/web/https://download2.ebz.epson.net/iscan/plugin/perfection-v550/rpm/x64/iscan-perfection-v550-bundle-${version}.x64.rpm.tar.gz"
];
sha256 = "f8b3abf21354fc5b9bc87753cef950b6c0f07bf322a94aaff2c163bafcf50cd9";
};
installPhase = ''
cd plugins
${rpm}/bin/rpm2cpio iscan-plugin-perfection-v550-*.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 0x013b "$plugin/lib/esci/libiscan-plugin-perfection-v550 $plugin/share/esci/esfweb.bin"
'';
hw = "Perfection V550 Photo";
};
meta = common_meta // { description = "Plugin to support " + passthru.hw + " scanner in sane"; };
};
v600 = stdenv.mkDerivation rec {
pname = "iscan-gt-x820-bundle";
version = "2.30.4";