Commit | Line | Data |
---|---|---|
d801cd05 LC |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2018 Ludovic Courtès <ludo@gnu.org> | |
a82b561f | 3 | ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
44e06f9c | 4 | ;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net> |
d801cd05 LC |
5 | ;;; |
6 | ;;; This file is part of GNU Guix. | |
7 | ;;; | |
8 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
9 | ;;; under the terms of the GNU General Public License as published by | |
10 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
11 | ;;; your option) any later version. | |
12 | ;;; | |
13 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
14 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | ;;; GNU General Public License for more details. | |
17 | ;;; | |
18 | ;;; You should have received a copy of the GNU General Public License | |
19 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
20 | ||
21 | (define-module (gnu packages printers) | |
22 | #:use-module (guix packages) | |
a82b561f | 23 | #:use-module (guix git-download) |
44e06f9c | 24 | #:use-module (guix build-system cmake) |
d801cd05 LC |
25 | #:use-module (guix build-system gnu) |
26 | #:use-module ((guix licenses) #:prefix license:) | |
44e06f9c RW |
27 | #:use-module (gnu packages compression) |
28 | #:use-module (gnu packages cups) | |
d801cd05 | 29 | #:use-module (gnu packages libusb) |
44e06f9c | 30 | #:use-module (gnu packages ghostscript) |
d801cd05 LC |
31 | #:use-module (gnu packages pkg-config) |
32 | #:use-module (gnu packages qt)) | |
33 | ||
34 | ;; This is a module for packages related to printer-like devices, but not | |
35 | ;; related to CUPS. | |
36 | ||
37 | (define-public robocut | |
38 | (package | |
39 | (name "robocut") | |
40 | (version "1.0.11") | |
a82b561f TGR |
41 | (source |
42 | (origin | |
43 | (method git-fetch) | |
44 | (uri (git-reference | |
b0e7b699 | 45 | (url "https://github.com/Timmmm/robocut") |
a82b561f TGR |
46 | (commit (string-append "v" version)))) |
47 | (file-name (git-file-name name version)) | |
48 | (sha256 | |
49 | (base32 "0dp9cssyik63yvkk35s51v94a873x751iqg93qzd8dpqkmz5z8gn")))) | |
d801cd05 LC |
50 | (build-system gnu-build-system) |
51 | (arguments | |
52 | '(#:phases (modify-phases %standard-phases | |
53 | (replace 'configure | |
54 | (lambda* (#:key outputs #:allow-other-keys) | |
55 | (let ((out (assoc-ref outputs "out"))) | |
56 | (substitute* "Robocut.pro" | |
57 | (("/usr/") | |
58 | (string-append out "/"))) | |
59 | ||
60 | (invoke "qmake" | |
61 | (string-append "PREFIX=" out)) | |
62 | #t)))))) | |
63 | (inputs | |
64 | `(("libusb" ,libusb) | |
65 | ("qt" ,qtbase) | |
66 | ("qtsvg" ,qtsvg))) | |
67 | (native-inputs | |
68 | `(("pkg-config" ,pkg-config) | |
68fdb38f | 69 | ("qmake" ,qtbase))) |
d801cd05 LC |
70 | (synopsis "Graphical program to drive plotting cutters") |
71 | (description | |
72 | "Robocut is a simple graphical program that allows you to cut graphics | |
73 | with Graphtec and Sihouette plotting cutters using an SVG file as its input.") | |
74 | (home-page "http://robocut.org") | |
75 | (license license:gpl3+))) | |
44e06f9c RW |
76 | |
77 | (define-public brlaser | |
711e8bf7 | 78 | (package |
79 | (name "brlaser") | |
80 | (version "6") | |
81 | (source (origin | |
82 | (method git-fetch) | |
83 | (uri (git-reference | |
b0e7b699 | 84 | (url "https://github.com/pdewacht/brlaser") |
711e8bf7 | 85 | (commit (string-append "v" version)))) |
86 | (file-name (git-file-name name version)) | |
87 | (sha256 | |
88 | (base32 | |
89 | "1995s69ksq1fz0vb34v0ndiqncrinbrlpmp70rkl6az7kag99s80")))) | |
90 | (build-system cmake-build-system) | |
91 | (arguments | |
92 | `(#:configure-flags | |
93 | (list (string-append "-DCUPS_DATA_DIR=" | |
94 | (assoc-ref %outputs "out") | |
95 | "/share/cups") | |
96 | (string-append "-DCUPS_SERVER_BIN=" | |
97 | (assoc-ref %outputs "out") | |
98 | "/lib/cups")))) | |
99 | (inputs | |
100 | `(("ghostscript" ,ghostscript) | |
101 | ("cups" ,cups) | |
102 | ("zlib" ,zlib))) | |
103 | (home-page "https://github.com/pdewacht/brlaser") | |
104 | (synopsis "Brother laser printer driver") | |
105 | (description "Brlaser is a CUPS driver for Brother laser printers. This | |
44e06f9c RW |
106 | driver is known to work with these printers: |
107 | ||
108 | @enumerate | |
711e8bf7 | 109 | @item Brother DCP-1510 series |
110 | @item Brother DCP-1600 series | |
44e06f9c RW |
111 | @item Brother DCP-7030 |
112 | @item Brother DCP-7040 | |
113 | @item Brother DCP-7055 | |
114 | @item Brother DCP-7055W | |
711e8bf7 | 115 | @item Brother DCP-7060D |
44e06f9c RW |
116 | @item Brother DCP-7065DN |
117 | @item Brother DCP-7080 | |
711e8bf7 | 118 | @item Brother DCP-L2500D series |
119 | @item Brother DCP-L2520D series | |
120 | @item Brother DCP-L2540DW series | |
121 | @item Brother HL-1110 series | |
44e06f9c | 122 | @item Brother HL-1200 series |
711e8bf7 | 123 | @item Brother HL-2030 series |
124 | @item Brother HL-2140 series | |
125 | @item Brother HL-2220 series | |
126 | @item Brother HL-2270DW series | |
127 | @item Brother HL-5030 series | |
128 | @item Brother HL-L2300D series | |
44e06f9c | 129 | @item Brother HL-L2320D series |
711e8bf7 | 130 | @item Brother HL-L2340D series |
44e06f9c | 131 | @item Brother HL-L2360D series |
711e8bf7 | 132 | @item Brother MFC-1910W |
44e06f9c RW |
133 | @item Brother MFC-7240 |
134 | @item Brother MFC-7360N | |
711e8bf7 | 135 | @item Brother MFC-7365DN |
136 | @item Brother MFC-7840W | |
137 | @item Brother MFC-L2710DW series | |
138 | @item Lenovo M7605D | |
139 | @end enumerate") | |
140 | (license license:gpl2+))) |