mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
63 lines
1.5 KiB
Nix
63 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
autoreconfHook,
|
|
cups,
|
|
rpm,
|
|
cpio,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "epson-inkjet-printer-escpr2";
|
|
version = "1.2.20";
|
|
|
|
src = fetchurl {
|
|
# To find the most recent version go to
|
|
# https://support.epson.net/linux/Printer/LSB_distribution_pages/en/escpr2.php
|
|
# and retreive the download link for source package for x86 CPU
|
|
url = "https://download3.ebz.epson.net/dsc/f/03/00/16/35/74/81cbf34af8c0fa4c59b4c1f4600173dfda822ee4/epson-inkjet-printer-escpr2-1.2.20-1.src.rpm";
|
|
sha256 = "sha256-HBKAcHVOV+xO6IpFS1EyYyn4Ri4e5btBp/e50f3RoTA=";
|
|
};
|
|
|
|
unpackPhase = ''
|
|
runHook preUnpack
|
|
|
|
rpm2cpio $src | cpio -idmv
|
|
tar xvf ${pname}-${version}-1.tar.gz
|
|
cd ${pname}-${version}
|
|
|
|
runHook postUnpack
|
|
'';
|
|
|
|
buildInputs = [ cups ];
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
rpm
|
|
cpio
|
|
];
|
|
|
|
configureFlags = [
|
|
"--with-cupsfilterdir=${builtins.placeholder "out"}/lib/cups/filter"
|
|
"--with-cupsppddir=${builtins.placeholder "out"}/share/cups/model"
|
|
];
|
|
|
|
meta = with 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.gpl2Plus;
|
|
maintainers = with maintainers; [
|
|
ma9e
|
|
ma27
|
|
shawn8901
|
|
];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|