2021-01-17 00:15:33 +00:00
|
|
|
{lib, stdenv, fetchurl, cups}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-18 13:19:15 +00:00
|
|
|
pname = "cups-bjnp";
|
|
|
|
version = "1.2.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-18 13:19:15 +00:00
|
|
|
url = "mirror://sourceforge/cups-bjnp/cups-bjnp-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "0sb0vm1sf8ismzd9ba33qswxmsirj2z1b7lnyrc9v5ixm7q0bnrm";
|
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''configureFlags="--with-cupsbackenddir=$out/lib/cups/backend"'';
|
|
|
|
|
|
|
|
buildInputs = [cups];
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
2020-07-18 16:06:22 +00:00
|
|
|
"-include stdio.h"
|
|
|
|
"-Wno-error=stringop-truncation"
|
|
|
|
"-Wno-error=deprecated-declarations"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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";
|
2021-01-17 00:15:33 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|