Files
nixpkgs/pkgs/by-name/cu/cups-bjnp/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

44 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchurl,
cups,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "cups-bjnp";
version = "2.0.3";
src = fetchurl {
url = "mirror://sourceforge/cups-bjnp/cups-bjnp-${finalAttrs.version}.tar.gz";
hash = "sha256-yRSy/Z2OJs4i8t9iRNne/uwx7ppTYPcj7ss7APIWhQA=";
};
preConfigure = ''
mkdir -p $out/lib/cups/backend
configureFlags="--with-cupsbackenddir=$out/lib/cups/backend"
'';
buildInputs = [ cups ];
env.NIX_CFLAGS_COMPILE = toString [
"-include stdio.h"
"-Wno-error=stringop-truncation"
"-Wno-error=deprecated-declarations"
"-Wno-unused-variable"
"-Wno-error=address"
"-Wno-error=dangling-pointer"
];
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 = lib.platforms.linux;
};
})