2021-01-15 13:21:58 +00:00
|
|
|
{lib, stdenv, fetchurl, cups}:
|
2010-04-14 20:27:04 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-10-06 21:02:40 +01:00
|
|
|
name = "cups-bjnp-1.2.2";
|
2009-08-28 00:32:10 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-04-14 20:27:04 +01:00
|
|
|
url = "mirror://sourceforge/cups-bjnp/${name}.tar.gz";
|
2014-10-06 21:02:40 +01:00
|
|
|
sha256 = "0sb0vm1sf8ismzd9ba33qswxmsirj2z1b7lnyrc9v5ixm7q0bnrm";
|
2009-08-28 00:32:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''configureFlags="--with-cupsbackenddir=$out/lib/cups/backend"'';
|
|
|
|
|
|
|
|
buildInputs = [cups];
|
2020-06-27 12:45:20 +01:00
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
"-include stdio.h"
|
|
|
|
"-Wno-error=stringop-truncation"
|
|
|
|
"-Wno-error=deprecated-declarations"
|
|
|
|
];
|
2009-08-28 00:32:10 +01:00
|
|
|
|
2010-04-14 20:27:04 +01:00
|
|
|
meta = {
|
2016-01-02 22:14:31 +00:00
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://cups-bjnp.sourceforge.net";
|
2021-01-15 13:21:58 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2010-04-14 20:27:04 +01:00
|
|
|
};
|
2009-08-28 00:32:10 +01:00
|
|
|
}
|