summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Justin Bauer <mjbauer95@gmail.com>2018-03-22 11:09:39 -0500
committerGitHub <noreply@github.com>2018-03-22 11:09:39 -0500
commite35105c7c872bb9708cfa1c24158a74f354ab5f8 (patch)
tree6712a4b5ef4279bff11506d55537b704bed88d79
parentabb357c23e1cf7cc9733600f2b5c22e6392a6478 (diff)
parent56c88781ee7484a725699d140d8ff0edbc36e697 (diff)
downloadnixlib-e35105c7c872bb9708cfa1c24158a74f354ab5f8.tar
nixlib-e35105c7c872bb9708cfa1c24158a74f354ab5f8.tar.gz
nixlib-e35105c7c872bb9708cfa1c24158a74f354ab5f8.tar.bz2
nixlib-e35105c7c872bb9708cfa1c24158a74f354ab5f8.tar.lz
nixlib-e35105c7c872bb9708cfa1c24158a74f354ab5f8.tar.xz
nixlib-e35105c7c872bb9708cfa1c24158a74f354ab5f8.tar.zst
nixlib-e35105c7c872bb9708cfa1c24158a74f354ab5f8.zip
Merge pull request #35081 from StijnDW/master
brlaser: init from latest git
-rw-r--r--pkgs/misc/cups/drivers/brlaser/default.nix42
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/misc/cups/drivers/brlaser/default.nix b/pkgs/misc/cups/drivers/brlaser/default.nix
new file mode 100644
index 000000000000..7a6d6c3861df
--- /dev/null
+++ b/pkgs/misc/cups/drivers/brlaser/default.nix
@@ -0,0 +1,42 @@
+{ stdenv, fetchFromGitHub, cmake, zlib, cups, ghostscript }:
+
+stdenv.mkDerivation rec {
+
+  name = "brlaser";
+
+  src = fetchFromGitHub {
+    owner = "pdewacht";
+    repo = "brlaser";
+    rev = "a52149823373e11f918d9e6a56eda7242935c99b";
+    sha256 = "12d8g0aispdj2virf6vrvb0vx6d6ardjg3qyav75shsm1f94ids6";
+  };
+
+  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 ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 7670add775f3..4436cb7edfc4 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -20622,6 +20622,8 @@ with pkgs;
     snapscanFirmware = config.sane.snapscanFirmware or null;
   };
 
+  brlaser = callPackage ../misc/cups/drivers/brlaser { };
+
   brscan4 = callPackage ../applications/graphics/sane/backends/brscan4 { };
 
   mkSaneConfig = callPackage ../applications/graphics/sane/config.nix { };