about summary refs log tree commit diff
path: root/nixpkgs/pkgs/misc/cups/drivers/cups-bjnp/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/misc/cups/drivers/cups-bjnp/default.nix')
-rw-r--r--nixpkgs/pkgs/misc/cups/drivers/cups-bjnp/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/misc/cups/drivers/cups-bjnp/default.nix b/nixpkgs/pkgs/misc/cups/drivers/cups-bjnp/default.nix
new file mode 100644
index 000000000000..0c91b782117d
--- /dev/null
+++ b/nixpkgs/pkgs/misc/cups/drivers/cups-bjnp/default.nix
@@ -0,0 +1,26 @@
+{stdenv, fetchurl, cups}:
+
+stdenv.mkDerivation rec {
+  name = "cups-bjnp-1.2.2";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/cups-bjnp/${name}.tar.gz";
+    sha256 = "0sb0vm1sf8ismzd9ba33qswxmsirj2z1b7lnyrc9v5ixm7q0bnrm";
+  };
+
+  preConfigure = ''configureFlags="--with-cupsbackenddir=$out/lib/cups/backend"'';
+
+  buildInputs = [cups];
+  NIX_CFLAGS_COMPILE = [ "-include stdio.h" "-Wno-error=stringop-truncation" ];
+
+  meta = {
+    description = "CUPS back-end for Canon printers";
+    longDescription = ''
+      CUPS back-end for the canon printers using the proprietary USB over IP
+      BJNP protocol. This back-end allows Cups to print over the network to a
+      Canon printer. The design is based on reverse engineering of the protocol.
+    '';
+    homepage = http://cups-bjnp.sourceforge.net;
+    platforms = stdenv.lib.platforms.linux;
+  };
+}