Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / misc / drivers / epson-escpr / default.nix
blob40e6c7b3b18b954ef708f60b48d0fbd538b5a054
1 { lib, stdenv, fetchurl, cups }:
3 let version = "1.7.20";
4 in stdenv.mkDerivation {
5   pname = "epson-escpr";
6   inherit version;
8   src = fetchurl {
9     # To find new versions, visit
10     # http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX and search for
11     # some printer like for instance "WF-7110" to get to the most recent
12     # version.
13     # NOTE: Don't forget to update the webarchive link too!
14     urls = [
15       "https://download3.ebz.epson.net/dsc/f/03/00/13/76/45/5ac2ea8f9cf94a48abd64afd0f967f98c4fc24aa/epson-inkjet-printer-escpr-${version}-1lsb3.2.tar.gz"
17       "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"
18     ];
19     sha256 = "sha256:09rscpm557dgaflylr93wcwmyn6fnvr8nc77abwnq97r6hxwrkhk";
20   };
22   patches = [ ./cups-filter-ppd-dirs.patch ];
24   buildInputs = [ cups ];
26   meta = with lib; {
27     homepage = "http://download.ebz.epson.net/dsc/search/01/search/";
28     description = "ESC/P-R Driver (generic driver)";
29     longDescription = ''
30       Epson Inkjet Printer Driver (ESC/P-R) for Linux and the
31       corresponding PPD files. The list of supported printers
32       can be found at http://www.openprinting.org/driver/epson-escpr/ .
34       To use the driver adjust your configuration.nix file:
35         services.printing = {
36           enable = true;
37           drivers = [ pkgs.epson-escpr ];
38         };
40       To setup a wireless printer, enable Avahi which provides
41       printer's hostname to CUPS and nss-mdns to make this
42       hostname resolvable:
43         services.avahi = {
44           enable = true;
45           nssmdns = true;
46         };'';
47     license = licenses.gpl3Plus;
48     maintainers = with maintainers; [ artuuge ];
49     platforms = platforms.linux;
50   };