tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
epkowa: add plugin for DS-30
Cowboylaserkittenjetshark
4 months ago
3940ae6a
47b23ef8
+36
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
ep
epkowa
package.nix
+36
pkgs/by-name/ep/epkowa/package.nix
···
436
436
description = "iscan GT-1500 for " + passthru.hw;
437
437
};
438
438
};
439
439
+
ds30 = stdenv.mkDerivation rec {
440
440
+
name = "iscan-ds-30-bundle";
441
441
+
version = "2.30.4";
442
442
+
443
443
+
src = fetchurl {
444
444
+
urls = [
445
445
+
"https://download2.ebz.epson.net/iscan/plugin/ds-30/rpm/x64/iscan-ds-30-bundle-${version}.x64.rpm.tar.gz"
446
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
447
+
];
448
448
+
sha256 = "0d5ef9b83999c56c14bd17ca63537f63ad4f0d70056870dc00888af1b36f4153";
449
449
+
};
450
450
+
451
451
+
nativeBuildInputs = [
452
452
+
autoPatchelfHook
453
453
+
rpm
454
454
+
];
455
455
+
456
456
+
installPhase = ''
457
457
+
${rpm}/bin/rpm2cpio plugins/iscan-plugin-ds-30-*.x86_64.rpm | ${cpio}/bin/cpio -idmv
458
458
+
mkdir $out
459
459
+
cp -r usr/share $out
460
460
+
cp -r usr/lib64 $out/lib
461
461
+
mv $out/lib/iscan $out/lib/esci
462
462
+
mkdir $out/share/esci
463
463
+
'';
464
464
+
465
465
+
passthru = {
466
466
+
registrationCommand = ''
467
467
+
$registry --add interpreter usb 0x04b8 0x0147 "$plugin/lib/esci/libiscan-plugin-ds-30.so"
468
468
+
'';
469
469
+
hw = "DS-30";
470
470
+
};
471
471
+
meta = common_meta // {
472
472
+
description = "Plugin to support " + passthru.hw + " scanner in sane";
473
473
+
};
474
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