nixpkgs/pkgs/misc/cups/drivers/brlaser/default.nix
Matthew Bauer 02297beade treewide: add version to packages
Lots of packages are missing versions in their name. This adds them
where appropriate. These were found with this command:

 $ nix-env -qa -f. | grep -v '\-[0-9A-Za-z.-_+]*$' | grep -v '^hook$'

See issue #41007.
2018-05-25 15:48:05 -05:00

44 lines
1.3 KiB
Nix

{ stdenv, fetchFromGitHub, cmake, zlib, cups, ghostscript }:
stdenv.mkDerivation rec {
name = "brlaser-${version}";
version = "4";
src = fetchFromGitHub {
owner = "pdewacht";
repo = "brlaser";
rev = "v${version}";
sha256 = "1yy4mpf68c82h245srh2sd1yip29w6kx14gxk4hxkv496gf55lw5";
};
buildInputs = [ cmake zlib cups ];
preConfigure = ''
cmakeFlags="$cmakeFlags -DCUPS_SERVER_BIN=$out/lib/cups/ -DCUPS_DATA_DIR=$out/share/cups/"
'';
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;
platforms = platforms.unix;
maintainers = with maintainers; [ StijnDW ];
};
}