about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Girol <symphorien@users.noreply.github.com>2024-02-25 18:18:08 +0100
committerGitHub <noreply@github.com>2024-02-25 18:18:08 +0100
commitabc4653068fb14d0141eddfeb21f8d205ea83137 (patch)
tree341441a44572d0952cd483773bf71436f235d48c
parentbd4bf48e31c06f0d0d17e06ebdc30c2f9c593674 (diff)
parent147b07ffbb44d8128601273223b2535e4d4a076f (diff)
downloadnixlib-abc4653068fb14d0141eddfeb21f8d205ea83137.tar
nixlib-abc4653068fb14d0141eddfeb21f8d205ea83137.tar.gz
nixlib-abc4653068fb14d0141eddfeb21f8d205ea83137.tar.bz2
nixlib-abc4653068fb14d0141eddfeb21f8d205ea83137.tar.lz
nixlib-abc4653068fb14d0141eddfeb21f8d205ea83137.tar.xz
nixlib-abc4653068fb14d0141eddfeb21f8d205ea83137.tar.zst
nixlib-abc4653068fb14d0141eddfeb21f8d205ea83137.zip
Merge pull request #291382 from EduRenesto/epkowa-perfection-v550
epkowa: add plugin for Perfection V550 Photo
-rw-r--r--pkgs/misc/drivers/epkowa/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/misc/drivers/epkowa/default.nix b/pkgs/misc/drivers/epkowa/default.nix
index 460ebb8a3af0..a2e3bd28f490 100644
--- a/pkgs/misc/drivers/epkowa/default.nix
+++ b/pkgs/misc/drivers/epkowa/default.nix
@@ -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";