Skip to content

Commit

Permalink
Merge pull request #326589 from Shawn8901/backport-325904-to-release-…
Browse files Browse the repository at this point in the history
…24.05

[Backport release-24.05] epson-escpr2: 1.2.11 -> 1.2.12
  • Loading branch information
Ma27 authored Jul 12, 2024
2 parents b8914c5 + 8ca91f3 commit 9b665d7
Showing 1 changed file with 24 additions and 11 deletions.
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;
};
}

0 comments on commit 9b665d7

Please sign in to comment.