2019-01-29 23:46:45 +00:00
|
|
|
{ stdenv, fetchurl, cups, busybox }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "epson-inkjet-printer-escpr2";
|
2020-10-19 15:48:27 +00:00
|
|
|
version = "1.1.23";
|
2019-01-29 23:46:45 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-10-05 20:07:42 +00:00
|
|
|
# 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!
|
2020-06-29 17:37:32 +00:00
|
|
|
urls = [
|
2020-10-19 15:48:27 +00:00
|
|
|
"https://download3.ebz.epson.net/dsc/f/03/00/12/04/34/22448566e405c21c3f4436dfd8927176add3e680/epson-inkjet-printer-escpr2-1.1.23-1lsb3.2.src.rpm"
|
|
|
|
"https://web.archive.org/web/20201019154323if_/https://download3.ebz.epson.net/dsc/f/03/00/12/04/34/22448566e405c21c3f4436dfd8927176add3e680/epson-inkjet-printer-escpr2-1.1.23-1lsb3.2.src.rpm"
|
2019-10-05 20:07:42 +00:00
|
|
|
];
|
2020-10-19 15:48:27 +00:00
|
|
|
sha256 = "1d5zd8cwgp3n25ramdqwqb770iim7kh4l7hmhf6a6ivpy0cxpwx6";
|
2019-01-29 23:46:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./cups-filter-ppd-dirs.patch ];
|
|
|
|
|
|
|
|
buildInputs = [ cups busybox ];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
rpm2cpio $src | cpio -idmv
|
|
|
|
|
2019-08-15 12:41:18 +00:00
|
|
|
tar xvf ${pname}-${version}-1lsb3.2.tar.gz
|
|
|
|
cd ${pname}-${version}
|
2019-01-29 23:46:45 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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-04-25 15:48:31 +00:00
|
|
|
maintainers = with maintainers; [ ma9e ma27 ];
|
2019-01-29 23:46:45 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|