571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
32 lines
951 B
Nix
32 lines
951 B
Nix
{lib, stdenv, fetchurl, cups}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cups-bjnp";
|
|
version = "1.2.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/cups-bjnp/cups-bjnp-${version}.tar.gz";
|
|
sha256 = "0sb0vm1sf8ismzd9ba33qswxmsirj2z1b7lnyrc9v5ixm7q0bnrm";
|
|
};
|
|
|
|
preConfigure = ''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"
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|