2 autoreconfHook, cups, libjpeg, rpmextract,
8 filter = "epson-inkjet-printer-filter-1.0.0";
9 driver = "epson-inkjet-printer-workforce-635-nx625-series-1.0.1";
11 in stdenv.mkDerivation rec {
12 pname = "epson-inkjet-printer-workforce-635-nx625-series";
16 # NOTE: Don't forget to update the webarchive link too!
18 "https://download.ebz.epson.net/dsc/op/stable/SRPMS/${pname}-${version}-1lsb3.2.src.rpm"
19 "https://web.archive.org/web/https://download.ebz.epson.net/dsc/op/stable/SRPMS/${pname}-${version}-1lsb3.2.src.rpm"
21 sha256 = "19nb2h0y9rvv6rg7j262f8sqap9kjvz8kmisxnjg1w0v19zb9zf2";
23 sourceRoot = srcdirs.filter;
25 nativeBuildInputs = [ autoreconfHook rpmextract ];
26 buildInputs = [ cups libjpeg ];
30 for i in ${lib.concatStringsSep " " (builtins.attrValues srcdirs)}; do
41 filterdir = "$out/cups/lib/filter";
42 docdir = "$out/share/doc";
43 ppddir = "$out/share/cups/model/${pname}";
45 if stdenv.system == "x86_64-linux" then "lib64"
46 else if stdenv.system == "i686_linux" then "lib"
47 else throw "other platforms than i686_linux and x86_64-linux are not yet supported";
49 mkdir -p "$out" "${docdir}" "${filterdir}" "${ppddir}"
50 cp src/epson_inkjet_printer_filter "${filterdir}"
52 cd ../${srcdirs.driver}
54 substituteInPlace "$ppd" --replace '/opt/${pname}' "$out"
55 gzip -c "$ppd" > "${ppddir}/''${ppd#*/}"
57 cp COPYING.EPSON README "${docdir}"
58 cp -r resource watermark ${libdir} "$out"
62 description = "Proprietary CUPS drivers for Epson inkjet printers";
64 This software is a filter program used with Common UNIX Printing
65 System (CUPS) from the Linux. This can supply the high quality print
66 with Seiko Epson Color Ink Jet Printers.
68 This printer driver is supporting the following printers.
80 Epson Stylus Office B42WD
81 Epson Stylus Office BX525WD
82 Epson Stylus Office BX625FWD
83 Epson Stylus Office TX620FWD
87 Epson ME OFFICE 960FWD
89 License: LGPL and SEIKO EPSON CORPORATION SOFTWARE LICENSE AGREEMENT
91 To use the driver adjust your configuration.nix file:
94 drivers = [ pkgs.${pname} ];
97 downloadPage = "https://download.ebz.epson.net/dsc/du/02/DriverDownloadInfo.do?LG2=EN&CN2=&DSCMI=16857&DSCCHK=4334d3487503d7f916ccf5d58071b05b7687294f";
98 license = with lib.licenses; [ lgpl21 epson ];
99 maintainers = [ lib.maintainers.jorsn ];
100 platforms = [ "x86_64-linux" "i686-linux" ];