2023-12-17 15:47:22 +00:00
|
|
|
{ lib, stdenv, fetchurl, cups, rpm, cpio }:
|
2019-01-29 23:46:45 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "epson-inkjet-printer-escpr2";
|
2024-06-23 20:31:59 +00:00
|
|
|
version = "1.2.11";
|
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
|
2021-01-19 21:20:11 +00:00
|
|
|
# version.
|
2024-06-23 20:31:59 +00:00
|
|
|
url = "https://download3.ebz.epson.net/dsc/f/03/00/15/93/07/6926ce2857b2e0f563eecfd6a877b7b71898ad46/epson-inkjet-printer-escpr2-1.2.11-1.src.rpm";
|
|
|
|
sha256 = "sha256-WMjtYYuMGMPf6222rvrP5Ep6fMRwebPTUXeQ6CbwEt4=";
|
2019-01-29 23:46:45 +00:00
|
|
|
};
|
|
|
|
|
2021-07-31 16:38:29 +00:00
|
|
|
unpackPhase = ''
|
|
|
|
runHook preUnpack
|
|
|
|
|
|
|
|
rpm2cpio $src | cpio -idmv
|
2023-12-17 15:48:20 +00:00
|
|
|
tar xvf ${pname}-${version}-1.tar.gz
|
2021-07-31 16:38:29 +00:00
|
|
|
cd ${pname}-${version}
|
|
|
|
|
|
|
|
runHook postUnpack
|
|
|
|
'';
|
|
|
|
|
2019-01-29 23:46:45 +00:00
|
|
|
patches = [ ./cups-filter-ppd-dirs.patch ];
|
|
|
|
|
2021-06-27 18:02:31 +00:00
|
|
|
buildInputs = [ cups ];
|
2023-12-17 15:47:22 +00:00
|
|
|
nativeBuildInputs = [ rpm cpio ];
|
2019-01-29 23:46:45 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-01-29 23:46:45 +00:00
|
|
|
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;
|
2023-12-20 21:25:05 +00:00
|
|
|
maintainers = with maintainers; [ ma9e ma27 shawn8901 ];
|
2019-01-29 23:46:45 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|