epkowa: add plugin for DS-30

+36
+36
pkgs/by-name/ep/epkowa/package.nix
··· 436 436 description = "iscan GT-1500 for " + passthru.hw; 437 437 }; 438 438 }; 439 + ds30 = stdenv.mkDerivation rec { 440 + name = "iscan-ds-30-bundle"; 441 + version = "2.30.4"; 442 + 443 + src = fetchurl { 444 + urls = [ 445 + "https://download2.ebz.epson.net/iscan/plugin/ds-30/rpm/x64/iscan-ds-30-bundle-${version}.x64.rpm.tar.gz" 446 + "https://web.archive.org/web/https://download2.ebz.epson.net/iscan/plugin/ds-30/rpm/x64/iscan-ds-30-bundle-${version}.x64.rpm.tar.gz" 447 + ]; 448 + sha256 = "0d5ef9b83999c56c14bd17ca63537f63ad4f0d70056870dc00888af1b36f4153"; 449 + }; 450 + 451 + nativeBuildInputs = [ 452 + autoPatchelfHook 453 + rpm 454 + ]; 455 + 456 + installPhase = '' 457 + ${rpm}/bin/rpm2cpio plugins/iscan-plugin-ds-30-*.x86_64.rpm | ${cpio}/bin/cpio -idmv 458 + mkdir $out 459 + cp -r usr/share $out 460 + cp -r usr/lib64 $out/lib 461 + mv $out/lib/iscan $out/lib/esci 462 + mkdir $out/share/esci 463 + ''; 464 + 465 + passthru = { 466 + registrationCommand = '' 467 + $registry --add interpreter usb 0x04b8 0x0147 "$plugin/lib/esci/libiscan-plugin-ds-30.so" 468 + ''; 469 + hw = "DS-30"; 470 + }; 471 + meta = common_meta // { 472 + description = "Plugin to support " + passthru.hw + " scanner in sane"; 473 + }; 474 + }; 439 475 network = stdenv.mkDerivation rec { 440 476 pname = "iscan-nt-bundle"; 441 477 # for the version, look for the driver of XP-750 in the search page