11 stdenv.mkDerivation rec {
12 pname = "epson-inkjet-printer-escpr2";
16 # To find the most recent version go to
17 # https://support.epson.net/linux/Printer/LSB_distribution_pages/en/escpr2.php
18 # and retreive the download link for source package for x86 CPU
19 url = "https://download3.ebz.epson.net/dsc/f/03/00/16/65/06/8fdecc271f6473178d08ffd6b6f6ca2abc92e32f/epson-inkjet-printer-escpr2-1.2.26-1.src.rpm";
20 sha256 = "sha256-Js2iZCS9ZzJVRF8PbDA/U1muOne+upq4sA0u+NVIk/0=";
26 rpm2cpio $src | cpio -idmv
27 tar xvf ${pname}-${version}-1.tar.gz
28 cd ${pname}-${version}
33 buildInputs = [ cups ];
41 # Fixes "implicit declaration of function" errors
42 # source of patch: https://aur.archlinux.org/packages/epson-inkjet-printer-escpr2
44 url = "https://aur.archlinux.org/cgit/aur.git/plain/bug_x86_64.patch?h=epson-inkjet-printer-escpr2&id=575d1b959063044f233cca099caceec8e6d5c02f";
45 sha256 = "sha256-G6/3oj25FUT+xv9aJ7qP5PBZWLfy+V8MCHUYucDhtzM=";
50 "--with-cupsfilterdir=${builtins.placeholder "out"}/lib/cups/filter"
51 "--with-cupsppddir=${builtins.placeholder "out"}/share/cups/model"
55 homepage = "http://download.ebz.epson.net/dsc/search/01/search/";
56 description = "ESC/P-R 2 Driver (generic driver)";
58 Epson Inkjet Printer Driver 2 (ESC/P-R 2) for Linux and the
59 corresponding PPD files.
61 Refer to the description of epson-escpr for usage.
63 license = licenses.gpl2Plus;
64 maintainers = with maintainers; [
69 platforms = platforms.linux;