nixpkgs/pkgs/misc/drivers/epson-escpr2/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.3 KiB
Nix
Raw Normal View History

2021-07-31 16:38:29 +00:00
{ lib, stdenv, fetchurl, cups, busybox }:
2019-01-29 23:46:45 +00:00
stdenv.mkDerivation rec {
pname = "epson-inkjet-printer-escpr2";
2022-07-16 18:15:16 +00:00
version = "1.1.49";
2019-01-29 23:46:45 +00:00
src = fetchurl {
# 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.
2022-07-16 18:15:16 +00:00
url = "https://download3.ebz.epson.net/dsc/f/03/00/13/76/47/16f624dc1dfad10c3b4eb141c50c651a6360f69a/epson-inkjet-printer-escpr2-1.1.49-1lsb3.2.src.rpm";
sha256 = "sha256-WKDOpS7YL7J/IaNQcTjcoyXNXJGOuEexopdhYFubf50=";
2019-01-29 23:46:45 +00:00
};
2021-07-31 16:38:29 +00:00
unpackPhase = ''
runHook preUnpack
rpm2cpio $src | cpio -idmv
tar xvf ${pname}-${version}-1lsb3.2.tar.gz
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 ];
2021-07-31 16:38:29 +00:00
nativeBuildInputs = [ busybox ];
2019-01-29 23:46:45 +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;
2020-04-25 15:48:31 +00:00
maintainers = with maintainers; [ ma9e ma27 ];
2019-01-29 23:46:45 +00:00
platforms = platforms.linux;
};
}