Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 24 additions & 11 deletions pkgs/misc/drivers/epson-escpr2/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
{ lib, stdenv, fetchurl, cups, rpm, cpio }:
{
lib,
stdenv,
fetchurl,
cups,
rpm,
cpio,
}:

stdenv.mkDerivation rec {
pname = "epson-inkjet-printer-escpr2";
version = "1.2.11";
version = "1.2.12";

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.
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=";
# 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/15/98/70/f6a682eeeba1fd8bdf2ac112d5e1111d951c64a6/epson-inkjet-printer-escpr2-1.2.12-1.src.rpm";
sha256 = "sha256-7OkDlYhfQ/S3OD5QeN7DgNK0+LHabIm8zErtUDYcqwo=";
};

unpackPhase = ''
Expand All @@ -26,7 +32,10 @@ stdenv.mkDerivation rec {
patches = [ ./cups-filter-ppd-dirs.patch ];

buildInputs = [ cups ];
nativeBuildInputs = [ rpm cpio ];
nativeBuildInputs = [
rpm
cpio
];

meta = with lib; {
homepage = "http://download.ebz.epson.net/dsc/search/01/search/";
Expand All @@ -37,8 +46,12 @@ stdenv.mkDerivation rec {

Refer to the description of epson-escpr for usage.
'';
license = licenses.gpl2;
maintainers = with maintainers; [ ma9e ma27 shawn8901 ];
license = licenses.gpl2Plus;
maintainers = with maintainers; [
ma9e
ma27
shawn8901
];
platforms = platforms.linux;
};
}