1 { lib, stdenv, fetchurl, cups, busybox }:
3 stdenv.mkDerivation rec {
4 pname = "epson-inkjet-printer-escpr2";
8 # To find new versions, visit
9 # http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX and search for
10 # some printer like for instance "WF-7210" to get to the most recent
12 url = "https://download3.ebz.epson.net/dsc/f/03/00/13/76/47/16f624dc1dfad10c3b4eb141c50c651a6360f69a/epson-inkjet-printer-escpr2-1.1.49-1lsb3.2.src.rpm";
13 sha256 = "sha256-WKDOpS7YL7J/IaNQcTjcoyXNXJGOuEexopdhYFubf50=";
19 rpm2cpio $src | cpio -idmv
20 tar xvf ${pname}-${version}-1lsb3.2.tar.gz
21 cd ${pname}-${version}
26 patches = [ ./cups-filter-ppd-dirs.patch ];
28 buildInputs = [ cups ];
29 nativeBuildInputs = [ busybox ];
32 homepage = "http://download.ebz.epson.net/dsc/search/01/search/";
33 description = "ESC/P-R 2 Driver (generic driver)";
35 Epson Inkjet Printer Driver 2 (ESC/P-R 2) for Linux and the
36 corresponding PPD files.
38 Refer to the description of epson-escpr for usage.
40 license = licenses.gpl2;
41 maintainers = with maintainers; [ ma9e ma27 ];
42 platforms = platforms.linux;