1{ lib, stdenv, fetchFromGitHub, cmake, zlib, cups }:
2
3stdenv.mkDerivation rec {
4 pname = "brlaser";
5 version = "6";
6
7 src = fetchFromGitHub {
8 owner = "pdewacht";
9 repo = "brlaser";
10 rev = "v${version}";
11 sha256 = "1995s69ksq1fz0vb34v0ndiqncrinbrlpmp70rkl6az7kag99s80";
12 };
13
14 nativeBuildInputs = [ cmake ];
15 buildInputs = [ zlib cups ];
16
17 cmakeFlags = [ "-DCUPS_SERVER_BIN=lib/cups" "-DCUPS_DATA_DIR=share/cups" ];
18
19 meta = with lib; {
20 description = "A CUPS driver for Brother laser printers";
21 longDescription =
22 ''
23 Although most Brother printers support a standard printer language such as PCL or PostScript, not all do. If you have a monochrome Brother laser printer (or multi-function device) and the other open source drivers don't work, this one might help.
24
25 This driver is known to work with these printers:
26
27 Brother DCP-1510
28 Brother DCP-1602
29 Brother DCP-7030
30 Brother DCP-7040
31 Brother DCP-7055
32 Brother DCP-7055W
33 Brother DCP-7060D
34 Brother DCP-7065DN
35 Brother DCP-7080
36 Brother DCP-L2500D
37 Brother DCP-L2520D
38 Brother DCP-L2540DW
39 Brother HL-1110
40 Brother HL-1200
41 Brother HL-2030
42 Brother HL-2140
43 Brother HL-2220
44 Brother HL-2270DW
45 Brother HL-5030
46 Brother HL-L2300D
47 Brother HL-L2320D
48 Brother HL-L2340D
49 Brother HL-L2360D
50 Brother MFC-1910W
51 Brother MFC-7240
52 Brother MFC-7360N
53 Brother MFC-7365DN
54 Brother MFC-7840W
55 Brother MFC-L2710DW
56 Lenovo M7605D
57 '';
58 homepage = "https://github.com/pdewacht/brlaser";
59 license = licenses.gpl2;
60 platforms = platforms.linux;
61 maintainers = with maintainers; [ StijnDW ];
62 };
63}