2016-02-08 13:21:39 +00:00
|
|
|
{ stdenv, fetchurl, cups }:
|
|
|
|
|
|
|
|
let
|
2017-02-26 21:52:21 +00:00
|
|
|
version = "1.6.12";
|
2016-02-08 13:21:39 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
|
|
|
name = "epson-escpr-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2017-02-26 21:52:21 +00:00
|
|
|
|
|
|
|
url = "https://download3.ebz.epson.net/dsc/f/03/00/05/46/21/01534966894f35247dac8c8ef0a0a9c94d1c8b40/epson-inkjet-printer-escpr-1.6.12-1lsb3.2.tar.gz";
|
|
|
|
sha256 = "3773e74a0c4debf202eb9ad0aa31c6614a93d6170484ff660c14e99f8698cfda";
|
2016-02-08 13:21:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./cups-filter-ppd-dirs.patch ];
|
|
|
|
|
|
|
|
buildInputs = [ cups ];
|
|
|
|
|
2016-03-03 13:59:40 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://download.ebz.epson.net/dsc/search/01/search/;
|
2016-02-08 13:21:39 +00:00
|
|
|
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 ];
|
|
|
|
};
|
2017-02-26 21:52:21 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};'';
|
2016-03-03 13:59:40 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ artuuge ];
|
|
|
|
platforms = platforms.linux;
|
2016-02-08 13:21:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|