aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-10-27 16:21:10 -0300
committerEuAndreh <eu@euandre.org>2022-10-27 16:24:05 -0300
commit9a8a3144b294eebab4dfe074e0fb322592a0ef5a (patch)
tree63bd0ae7d6b6d5a53f90b0a0bb096f6cd120a09d
parentsrc/xyz/euandreh/pending.scm: Remove, patch was applied upstream (diff)
downloadpackage-repository-9a8a3144b294eebab4dfe074e0fb322592a0ef5a.tar.gz
package-repository-9a8a3144b294eebab4dfe074e0fb322592a0ef5a.tar.xz
src/xyz/euandreh/queue.scm: Add driver for EPSON L365
-rw-r--r--src/xyz/euandreh/queue.scm60
1 files changed, 59 insertions, 1 deletions
diff --git a/src/xyz/euandreh/queue.scm b/src/xyz/euandreh/queue.scm
index 5003f24..1b11cb7 100644
--- a/src/xyz/euandreh/queue.scm
+++ b/src/xyz/euandreh/queue.scm
@@ -1,9 +1,15 @@
(define-module (xyz euandreh queue)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix download)
+ #:use-module (guix gexp)
#:use-module (guix packages)
+ #:use-module (guix build-system gnu)
#:use-module (guix build-system python)
#:use-module (gnu packages check)
+ #:use-module (gnu packages cpio)
+ #:use-module (gnu packages cups)
+ #:use-module (gnu packages image)
+ #:use-module (gnu packages package-management)
#:use-module (gnu packages python-build)
#:use-module (gnu packages python-crypto)
#:use-module (gnu packages python-web)
@@ -185,6 +191,58 @@ collections.OrderedDict that works in Python 2.4-2.6.")
(description "We have made you a wrapper you can't refuse")
(license #f)))
+(define-public epson-L365
+ (package
+ (name "epson-L365")
+ (version "1.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append
+ "https://download3.ebz.epson.net/dsc/f/03/00/03/45/41/92e9c9254f0ee4230a069545ba27ec2858a2c457/epson-inkjet-printer-201401w-"
+ version
+ "-1lsb3.2.src.rpm"))
+ (sha256
+ (base32 "0c60m1sd59s4sda38dc5nniwa7dh1b0kv1maajr0x9d38gqlyk3x"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'unpack
+ (lambda* (#:key outputs #:allow-other-keys)
+ (mkdir "source")
+ (chdir "source")
+ (system (string-append "rpm2cpio " #$source " | cpio -idv"))
+ (invoke "tar" "-xvf" (string-append "epson-inkjet-printer-201401w-" #$version ".tar.gz"))
+ (invoke "tar" "-xvf" (string-append "epson-inkjet-printer-filter-" #$version ".tar.gz"))
+ (substitute* (find-files (string-append "epson-inkjet-printer-201401w-" #$version "/ppds/"))
+ (("/opt/epson-inkjet-printer-201401w") (assoc-ref outputs "out")))
+ (chdir (string-append "epson-inkjet-printer-filter-" #$version))))
+ (add-after 'install 'install-extra-files
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (model-dir (string-append out "")))
+ (chdir (string-append "../epson-inkjet-printer-201401w-" #$version))
+ (mkdir-p model-dir)
+ (invoke "cp" "-a" "ppds" model-dir)
+ (invoke "cp" "-a" "lib64" "resource" "watermark" out)))))))
+ (native-inputs
+ (list cpio
+ cups-minimal
+ libjpeg-turbo
+ rpm))
+ (synopsis
+ "Epson printer driver (L456, L455, L366, L365, L362, L360, L312, L310, L222, L220, L132, L130)")
+ (description
+ "This software is a filter program used with the Common UNIX Printing
+System (CUPS) under Linux. It supplies high quality printing with
+Seiko Epson Color Ink Jet Printers.")
+ (home-page "https://www.openprinting.org/driver/epson-201401w")
+ (license license:lgpl2.1)))
+
(list
python-docx
- python-telegram-bot)
+ python-telegram-bot
+ epson-L365)