2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchurl, cups, busybox }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "epson-inkjet-printer-escpr2";
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "1.1.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
# 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-7210" to get to the most recent
|
|
|
|
# version.
|
|
|
|
# NOTE: Don't forget to update the webarchive link too!
|
|
|
|
urls = [
|
2020-05-29 06:06:01 +00:00
|
|
|
"https://download3.ebz.epson.net/dsc/f/03/00/11/12/33/f7e44f924a4f479e4c74f8f587e07c57de3abd85/epson-inkjet-printer-escpr2-1.1.12-1lsb3.2.src.rpm"
|
|
|
|
"https://web.archive.org/web/20200523220202if_/https://download3.ebz.epson.net/dsc/f/03/00/11/12/33/f7e44f924a4f479e4c74f8f587e07c57de3abd85/epson-inkjet-printer-escpr2-1.1.12-1lsb3.2.src.rpm"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2020-05-29 06:06:01 +00:00
|
|
|
sha256 = "07sq5xlmidqiycv0qwvpk2xf22vbkbk4fclnjlnx7s08d2jl75kv";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./cups-filter-ppd-dirs.patch ];
|
|
|
|
|
|
|
|
buildInputs = [ cups busybox ];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
rpm2cpio $src | cpio -idmv
|
|
|
|
|
|
|
|
tar xvf ${pname}-${version}-1lsb3.2.tar.gz
|
|
|
|
cd ${pname}-${version}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "http://download.ebz.epson.net/dsc/search/01/search/";
|
|
|
|
description = "ESC/P-R 2 Driver (generic driver)";
|
|
|
|
longDescription = ''
|
|
|
|
Epson Inkjet Printer Driver 2 (ESC/P-R 2) for Linux and the
|
|
|
|
corresponding PPD files.
|
|
|
|
|
|
|
|
Refer to the description of epson-escpr for usage.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl2;
|
2020-05-03 17:38:23 +00:00
|
|
|
maintainers = with maintainers; [ ma9e ma27 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|