epkowa: add plugin for Perfection V550 Photo

This commit is contained in:
Edu Renesto 2024-02-25 12:54:06 -03:00
parent c453cb662c
commit 147b07ffbb

View file

@ -99,6 +99,35 @@ let plugins = {
}; };
meta = common_meta // { description = "Plugin to support " + passthru.hw + " scanner in sane"; }; 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 { v600 = stdenv.mkDerivation rec {
pname = "iscan-gt-x820-bundle"; pname = "iscan-gt-x820-bundle";
version = "2.30.4"; version = "2.30.4";