4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
64 lines
1.9 KiB
Nix
64 lines
1.9 KiB
Nix
{ lib, stdenv, fetchFromGitHub, cmake, zlib, cups }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "brlaser";
|
|
version = "6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pdewacht";
|
|
repo = "brlaser";
|
|
rev = "v${version}";
|
|
sha256 = "1995s69ksq1fz0vb34v0ndiqncrinbrlpmp70rkl6az7kag99s80";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ zlib cups ];
|
|
|
|
cmakeFlags = [ "-DCUPS_SERVER_BIN=lib/cups" "-DCUPS_DATA_DIR=share/cups" ];
|
|
|
|
meta = with 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-1602
|
|
Brother DCP-7030
|
|
Brother DCP-7040
|
|
Brother DCP-7055
|
|
Brother DCP-7055W
|
|
Brother DCP-7060D
|
|
Brother DCP-7065DN
|
|
Brother DCP-7080
|
|
Brother DCP-L2500D
|
|
Brother DCP-L2520D
|
|
Brother DCP-L2540DW
|
|
Brother HL-1110
|
|
Brother HL-1200
|
|
Brother HL-2030
|
|
Brother HL-2140
|
|
Brother HL-2220
|
|
Brother HL-2270DW
|
|
Brother HL-5030
|
|
Brother HL-L2300D
|
|
Brother HL-L2320D
|
|
Brother HL-L2340D
|
|
Brother HL-L2360D
|
|
Brother MFC-1910W
|
|
Brother MFC-7240
|
|
Brother MFC-7360N
|
|
Brother MFC-7365DN
|
|
Brother MFC-7840W
|
|
Brother MFC-L2710DW
|
|
Lenovo M7605D
|
|
'';
|
|
homepage = "https://github.com/pdewacht/brlaser";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ StijnDW ];
|
|
};
|
|
}
|