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
55 changes: 48 additions & 7 deletions pkgs/by-name/ep/epson-escpr/package.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
{ lib, stdenv, fetchurl, cups }:
{
lib,
stdenv,
fetchurl,
cups,
fetchpatch,
dos2unix,
automake115x,
autoconf,
}:

let version = "1.7.20";
in stdenv.mkDerivation {
let
version = "1.8.6-1";
in
stdenv.mkDerivation {
pname = "epson-escpr";
inherit version;

Expand All @@ -12,16 +23,46 @@ in stdenv.mkDerivation {
# version.
# NOTE: Don't forget to update the webarchive link too!
urls = [
"https://download3.ebz.epson.net/dsc/f/03/00/13/76/45/5ac2ea8f9cf94a48abd64afd0f967f98c4fc24aa/epson-inkjet-printer-escpr-${version}-1lsb3.2.tar.gz"
"https://download3.ebz.epson.net/dsc/f/03/00/16/21/81/74d098a47c3a616713079c9cd5904b468bb33dea/epson-inkjet-printer-escpr-${version}.tar.gz"

"https://web.archive.org/web/https://download3.ebz.epson.net/dsc/f/03/00/13/76/45/5ac2ea8f9cf94a48abd64afd0f967f98c4fc24aa/epson-inkjet-printer-escpr-${version}-1lsb3.2.tar.gz"
"https://web.archive.org/web/https://download3.ebz.epson.net/dsc/f/03/00/16/21/81/74d098a47c3a616713079c9cd5904b468bb33dea/epson-inkjet-printer-escpr-${version}.tar.gz"
];
sha256 = "sha256:09rscpm557dgaflylr93wcwmyn6fnvr8nc77abwnq97r6hxwrkhk";
sha256 = "sha256-hVbX4OXPe4y37Szju3uVdXlVdjX4DFSN/A2Emz3eCcQ=";
};
# DOS Line Endings in /lib directory and UNIX Line endings in /src directory.
# So convert everything to UNIX style line endings.
# Since the files are modified, autoconf and automake is required
postUnpack = ''
dir=''${src%-*}
cd ''${dir#*-}
local f
for f in $(find ./ -type f || die); do
${dos2unix}/bin/dos2unix $f
done
cd ..
'';

patches = [ ./cups-filter-ppd-dirs.patch ];
patches = [
./cups-filter-ppd-dirs.patch
(fetchpatch {
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/net-print/epson-inkjet-printer-escpr/files/epson-inkjet-printer-escpr-1.8-missing-include.patch";
hash = "sha256-L4WhaxPQnJYyqCH00wiKIlFNMmCEXoGe5d7hJ5TMyEI=";
})
(fetchpatch {
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/net-print/epson-inkjet-printer-escpr/files/1.8.6-warnings.patch";
hash = "sha256-wSY0LZv2b+1kF7TfPolt554g79y2Ce6N/JqgjJyd3Ag=";
})
];

# To suppress error (Stripping trailing CRs from patch; use --binary to disable.)
patchFlags = [
"-p1"
];
buildInputs = [ cups ];
nativeBuildInputs = [
automake115x
autoconf
];

meta = with lib; {
homepage = "http://download.ebz.epson.net/dsc/search/01/search/";
Expand Down
Loading