unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* ESC/P-R package
@ 2017-10-28 22:32 Diego Nicola Barbato
  2017-10-29 15:16 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Diego Nicola Barbato @ 2017-10-28 22:32 UTC (permalink / raw)
  To: guix-devel

Hello,

I would like to create a package for the ESC/P-R printer driver.  The
recipe works on my machine (GuixSD on x86_64).  Yet I am not sure about
the source URL as it appears to break as soon as a new version is made
available because the old link is not preserved.  Should we get the
source from
http://http.debian.net/debian/pool/main/e/epson-inkjet-printer-escpr/
instead, even though it is an older version?

Greetings

Diego


diff -u ~/Programs/Guix/cups.scm.old ~/Programs/Guix/cups.scm
--- ~/Programs/Guix/cups.scm.old	2017-10-28 23:26:11.356064722 +0200
+++ ~/Programs/Guix/cups.scm	2017-10-29 00:03:38.820338060 +0200
@@ -599,3 +599,30 @@
 protocols, which cover printers made by Konica, HP (LaserJet), Oki, Samsung,
 and more.  See @file{README} for details.")
     (license license:gpl2+)))
+
+(define-public escpr
+  (package
+   (name "escpr")
+   (version "1.6.17")
+   ;; This currently works.  But it will break as soon as a newer
+   ;; version is available since the URLs for older versions are not
+   ;; preserved.  An alternative would be to download the source (for
+   ;; an older version) from this Debian repository:
+   ;; http://http.debian.net/debian/pool/main/e/epson-inkjet-printer-escpr/
+   (source (origin
+	    (method url-fetch)
+	    (uri "https://download3.ebz.epson.net/dsc/f/03/00/06/66/09/4ac2bf69bb1ddf4a9ad525596615cbb40fe4dad5/epson-inkjet-printer-escpr-1.6.17-1lsb3.2.tar.gz")
+	    (sha256
+	     (base32
+              "0m6v1wdavw4r25jfywqchsx0v9ss1l5fr8vq9d0d8cmjnz8mqblv"))))
+   (build-system gnu-build-system)
+   (arguments
+    `(#:configure-flags
+      `(,(string-append "--prefix=" (assoc-ref %outputs "out"))
+        ,(string-append "--with-cupsfilterdir=" (assoc-ref %outputs "out") "/lib/cups/filter")
+        ,(string-append "--with-cupsppddir=" (assoc-ref %outputs "out") "/share/ppd"))))
+   (inputs `(("cups" ,cups-minimal)))
+   (synopsis "ESC/P-R printer driver")
+   (description "ESC/P-R driver supporting a multitude of Epson printers.")
+   (home-page "http://download.ebz.epson.net/dsc/search/01/search")
+   (license license:gpl2+)))

Diff finished.  Sun Oct 29 00:04:01 2017

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-11-08  8:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-28 22:32 ESC/P-R package Diego Nicola Barbato
2017-10-29 15:16 ` Ludovic Courtès
2017-10-30 17:15   ` Diego Nicola Barbato
2017-11-08  8:01     ` Diego Nicola Barbato

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).