2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, zlib, cups }:
|
2018-02-17 20:10:17 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-05-24 06:37:33 +02:00
|
|
|
name = "brlaser-${version}";
|
|
|
|
version = "4";
|
2018-02-17 20:10:17 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pdewacht";
|
|
|
|
repo = "brlaser";
|
2018-05-24 06:37:33 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1yy4mpf68c82h245srh2sd1yip29w6kx14gxk4hxkv496gf55lw5";
|
2018-02-17 20:10:17 +01:00
|
|
|
};
|
|
|
|
|
2018-09-13 22:47:34 +02:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ zlib cups ];
|
2018-02-17 20:10:17 +01:00
|
|
|
|
2018-10-26 21:08:42 +02:00
|
|
|
cmakeFlags = [ "-DCUPS_SERVER_BIN=lib/cups" "-DCUPS_DATA_DIR=share/cups" ];
|
2018-02-17 20:10:17 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A CUPS driver for Brother laser printers";
|
|
|
|
longDescription =
|
|
|
|
''
|
|
|
|
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.
|
|
|
|
|
|
|
|
This driver is known to work with these printers:
|
|
|
|
|
|
|
|
Brother DCP-1510
|
|
|
|
Brother DCP-7030
|
|
|
|
Brother DCP-7040
|
|
|
|
Brother DCP-7055
|
|
|
|
Brother DCP-7055W
|
|
|
|
Brother DCP-7065DN
|
|
|
|
Brother HL-L2300D
|
|
|
|
Brother MFC-7360N
|
|
|
|
'';
|
|
|
|
homepage = https://github.com/pdewacht/brlaser;
|
|
|
|
license = licenses.gpl2;
|
2018-09-13 22:47:34 +02:00
|
|
|
platforms = platforms.linux;
|
2018-02-17 20:10:17 +01:00
|
|
|
maintainers = with maintainers; [ StijnDW ];
|
|
|
|
};
|
|
|
|
}
|