2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, rpmextract, autoreconfHook, file, libjpeg, cups }:
|
2016-03-09 04:19:31 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "1.0.0";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "epson_201207w";
|
|
|
|
inherit version;
|
2016-03-09 04:19:31 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-10-05 21:33:09 +01:00
|
|
|
# NOTE: Don't forget to update the webarchive link too!
|
|
|
|
urls = [
|
|
|
|
"https://download.ebz.epson.net/dsc/op/stable/SRPMS/epson-inkjet-printer-201207w-${version}-1lsb3.2.src.rpm"
|
|
|
|
"https://web.archive.org/web/https://download.ebz.epson.net/dsc/op/stable/SRPMS/epson-inkjet-printer-201207w-${version}-1lsb3.2.src.rpm"
|
|
|
|
];
|
2016-03-09 04:19:31 +00:00
|
|
|
sha256 = "1ixnhn2dk83nh9v8sdivzgc2bm9z2phvsbx8bc6ainbjq6vn7lns";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ rpmextract autoreconfHook file ];
|
|
|
|
|
|
|
|
buildInputs = [ libjpeg cups ];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
rpmextract $src
|
|
|
|
tar -zxf epson-inkjet-printer-201207w-${version}.tar.gz
|
|
|
|
tar -zxf epson-inkjet-printer-filter-${version}.tar.gz
|
|
|
|
for ppd in epson-inkjet-printer-201207w-${version}/ppds/*; do
|
|
|
|
substituteInPlace $ppd --replace "/opt/epson-inkjet-printer-201207w" "$out"
|
|
|
|
substituteInPlace $ppd --replace "/cups/lib" "/lib/cups"
|
|
|
|
done
|
|
|
|
cd epson-inkjet-printer-filter-${version}
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
chmod +x configure
|
|
|
|
export LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
cd ../epson-inkjet-printer-201207w-${version}
|
|
|
|
cp -a lib64 resource watermark $out
|
|
|
|
mkdir -p $out/share/cups/model/epson-inkjet-printer-201207w
|
|
|
|
cp -a ppds $out/share/cups/model/epson-inkjet-printer-201207w/
|
|
|
|
cp -a Manual.txt $out/doc/
|
|
|
|
cp -a README $out/doc/README.driver
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.openprinting.org/driver/epson-201207w";
|
2016-03-09 04:19:31 +00:00
|
|
|
description = "Epson printer driver (L110, L210, L300, L350, L355, L550, L555)";
|
|
|
|
longDescription = ''
|
|
|
|
This software is a filter program used with the Common UNIX Printing
|
|
|
|
System (CUPS) under Linux. It supplies high quality printing with
|
|
|
|
Seiko Epson Color Ink Jet Printers.
|
|
|
|
|
|
|
|
List of printers supported by this package:
|
|
|
|
Epson L110 Series
|
|
|
|
Epson L210 Series
|
|
|
|
Epson L300 Series
|
|
|
|
Epson L350 Series
|
|
|
|
Epson L355 Series
|
|
|
|
Epson L550 Series
|
|
|
|
Epson L555 Series
|
|
|
|
|
|
|
|
To use the driver adjust your configuration.nix file:
|
|
|
|
services.printing = {
|
|
|
|
enable = true;
|
|
|
|
drivers = [ pkgs.epson_201207w ];
|
|
|
|
};
|
|
|
|
'';
|
|
|
|
license = with licenses; [ lgpl21 epson ];
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|