2021-07-31 18:38:29 +02:00
|
|
|
{ lib, stdenv, fetchurl, cups, busybox }:
|
2019-01-30 00:46:45 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "epson-inkjet-printer-escpr2";
|
2021-10-29 13:26:38 +02:00
|
|
|
version = "1.1.42";
|
2019-01-30 00:46:45 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-10-05 22:07:42 +02: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 22:20:11 +01:00
|
|
|
# version.
|
2019-10-05 22:07:42 +02:00
|
|
|
# NOTE: Don't forget to update the webarchive link too!
|
2020-06-29 19:37:32 +02:00
|
|
|
urls = [
|
2021-10-29 13:26:38 +02:00
|
|
|
"https://download3.ebz.epson.net/dsc/f/03/00/13/07/72/df79cc238a167b9526f70cc123459c6bbe1edbad/epson-inkjet-printer-escpr2-1.1.42-1lsb3.2.src.rpm"
|
|
|
|
"https://web.archive.org/web/20211029093638/https://download3.ebz.epson.net/dsc/f/03/00/13/07/72/df79cc238a167b9526f70cc123459c6bbe1edbad/epson-inkjet-printer-escpr2-1.1.42-1lsb3.2.src.rpm"
|
2019-10-05 22:07:42 +02:00
|
|
|
];
|
2021-10-29 13:26:38 +02:00
|
|
|
sha256 = "sha256-CsZUurwwoXNWONZKAIkRd0ztmAr5wLWZhirCzJWWqMA=";
|
2019-01-30 00:46:45 +01:00
|
|
|
};
|
|
|
|
|
2021-07-31 18:38:29 +02:00
|
|
|
unpackPhase = ''
|
|
|
|
runHook preUnpack
|
|
|
|
|
|
|
|
rpm2cpio $src | cpio -idmv
|
|
|
|
tar xvf ${pname}-${version}-1lsb3.2.tar.gz
|
|
|
|
cd ${pname}-${version}
|
|
|
|
|
|
|
|
runHook postUnpack
|
|
|
|
'';
|
|
|
|
|
2019-01-30 00:46:45 +01:00
|
|
|
patches = [ ./cups-filter-ppd-dirs.patch ];
|
|
|
|
|
2021-06-27 20:02:31 +02:00
|
|
|
buildInputs = [ cups ];
|
2021-07-31 18:38:29 +02:00
|
|
|
nativeBuildInputs = [ busybox ];
|
2019-01-30 00:46:45 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-01-30 00:46:45 +01: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;
|
2020-04-25 17:48:31 +02:00
|
|
|
maintainers = with maintainers; [ ma9e ma27 ];
|
2019-01-30 00:46:45 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|