2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, cups }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "epson-escpr";
|
2021-08-08 23:34:03 +00:00
|
|
|
version = "1.7.16";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
# To find new versions, visit
|
|
|
|
# http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX and search for
|
|
|
|
# some printer like for instance "WF-7110" to get to the most recent
|
2021-02-05 17:12:51 +00:00
|
|
|
# version.
|
2020-04-24 23:36:52 +00:00
|
|
|
# NOTE: Don't forget to update the webarchive link too!
|
|
|
|
urls = [
|
2021-08-08 23:34:03 +00:00
|
|
|
"https://download3.ebz.epson.net/dsc/f/03/00/12/97/30/97f146010d33b9a55badbc23429296f6b9b46011/epson-inkjet-printer-escpr-1.7.16-1lsb3.2.tar.gz"
|
|
|
|
"https://web.archive.org/web/https://download3.ebz.epson.net/dsc/f/03/00/12/97/30/97f146010d33b9a55badbc23429296f6b9b46011/epson-inkjet-printer-escpr-1.7.16-1lsb3.2.tar.gz"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2021-08-08 23:34:03 +00:00
|
|
|
sha256 = "18n6fgyrii8084vdjhys94lr6nhhbmn7zzjd8jckvv1grb0iz9nv";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./cups-filter-ppd-dirs.patch ];
|
|
|
|
|
|
|
|
buildInputs = [ cups ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://download.ebz.epson.net/dsc/search/01/search/";
|
|
|
|
description = "ESC/P-R Driver (generic driver)";
|
|
|
|
longDescription = ''
|
|
|
|
Epson Inkjet Printer Driver (ESC/P-R) for Linux and the
|
|
|
|
corresponding PPD files. The list of supported printers
|
|
|
|
can be found at http://www.openprinting.org/driver/epson-escpr/ .
|
|
|
|
|
|
|
|
To use the driver adjust your configuration.nix file:
|
|
|
|
services.printing = {
|
|
|
|
enable = true;
|
|
|
|
drivers = [ pkgs.epson-escpr ];
|
|
|
|
};
|
|
|
|
|
|
|
|
To setup a wireless printer, enable Avahi which provides
|
|
|
|
printer's hostname to CUPS and nss-mdns to make this
|
|
|
|
hostname resolvable:
|
|
|
|
services.avahi = {
|
|
|
|
enable = true;
|
|
|
|
nssmdns = true;
|
|
|
|
};'';
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ artuuge ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|