2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, cups }:
|
2016-02-08 13:21:39 +00:00
|
|
|
|
2022-07-16 17:07:42 +00:00
|
|
|
let version = "1.7.20";
|
|
|
|
in stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "epson-escpr";
|
2022-07-16 17:07:42 +00:00
|
|
|
inherit version;
|
2017-10-13 20:14:36 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-10-05 20:08:26 +00:00
|
|
|
# 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-01-19 21:20:11 +00:00
|
|
|
# version.
|
2019-10-05 20:08:26 +00:00
|
|
|
# NOTE: Don't forget to update the webarchive link too!
|
|
|
|
urls = [
|
2022-07-16 17:07:42 +00:00
|
|
|
"https://download3.ebz.epson.net/dsc/f/03/00/13/76/45/5ac2ea8f9cf94a48abd64afd0f967f98c4fc24aa/epson-inkjet-printer-escpr-${version}-1lsb3.2.tar.gz"
|
|
|
|
|
|
|
|
"https://web.archive.org/web/https://download3.ebz.epson.net/dsc/f/03/00/13/76/45/5ac2ea8f9cf94a48abd64afd0f967f98c4fc24aa/epson-inkjet-printer-escpr-${version}-1lsb3.2.tar.gz"
|
2019-10-05 20:08:26 +00:00
|
|
|
];
|
2022-07-16 17:07:42 +00:00
|
|
|
sha256 = "sha256:09rscpm557dgaflylr93wcwmyn6fnvr8nc77abwnq97r6hxwrkhk";
|
2017-10-13 20:14:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./cups-filter-ppd-dirs.patch ];
|
|
|
|
|
|
|
|
buildInputs = [ cups ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-10-13 20:14:36 +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;
|
2023-12-11 07:33:11 +00:00
|
|
|
nssmdns4 = true;
|
2017-10-13 20:14:36 +00:00
|
|
|
};'';
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ artuuge ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|