Merge pull request #279240 from magicmonty/epkowa-gt1500-support

epkowa: add plugin for GT-1500

authored by Guillaume Girol and committed by GitHub af8901aa bb7d124c

+32
+32
pkgs/misc/drivers/epkowa/default.nix
··· 287 287 }; 288 288 meta = common_meta // { description = "iscan GT-X750 for " + passthru.hw; }; 289 289 }; 290 + gt1500 = stdenv.mkDerivation rec { 291 + name = "iscan-gt-1500-bundle"; 292 + version = "2.30.4"; 293 + 294 + src = fetchurl { 295 + urls = [ 296 + "https://download2.ebz.epson.net/iscan/plugin/gt-1500/rpm/x64/iscan-gt-1500-bundle-${version}.x64.rpm.tar.gz" 297 + "https://web.archive.org/web/https://download2.ebz.epson.net/iscan/plugin/gt-1500/rpm/x64/iscan-gt-1500-bundle-${version}.x64.rpm.tar.gz" 298 + ]; 299 + sha256 = "sha256-1rVsbBsb+QtCOT1FsyhgvCbZIN6IeQH7rZXNmsD7cl8="; 300 + }; 301 + 302 + nativeBuildInputs = [ autoPatchelfHook rpm ]; 303 + 304 + installPhase = '' 305 + cd plugins 306 + ${rpm}/bin/rpm2cpio iscan-plugin-gt-1500-*.x86_64.rpm | ${cpio}/bin/cpio -idmv 307 + mkdir $out 308 + cp -r usr/share $out 309 + cp -r usr/lib64 $out/lib 310 + mv $out/share/iscan $out/share/esci 311 + mv $out/lib/iscan $out/lib/esci 312 + ''; 313 + 314 + passthru = { 315 + registrationCommand = '' 316 + $registry --add interpreter usb 0x04b8 0x0133 "$plugin/lib/esci/libesint86 $plugin/share/esci/esfw86.bin" 317 + ''; 318 + hw = "GT-1500"; 319 + }; 320 + meta = common_meta // { description = "iscan GT-1500 for " + passthru.hw; }; 321 + }; 290 322 network = stdenv.mkDerivation rec { 291 323 pname = "iscan-nt-bundle"; 292 324 # for the version, look for the driver of XP-750 in the search page