mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
cups-bjnp: 1.2.2 -> 2.0.3
This commit is contained in:
parent
c4170d9f2d
commit
29a9c52778
1 changed files with 12 additions and 6 deletions
|
@ -5,23 +5,29 @@
|
||||||
cups,
|
cups,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "cups-bjnp";
|
pname = "cups-bjnp";
|
||||||
version = "1.2.2";
|
version = "2.0.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/cups-bjnp/cups-bjnp-${version}.tar.gz";
|
url = "mirror://sourceforge/cups-bjnp/cups-bjnp-${finalAttrs.version}.tar.gz";
|
||||||
sha256 = "0sb0vm1sf8ismzd9ba33qswxmsirj2z1b7lnyrc9v5ixm7q0bnrm";
|
hash = "sha256-yRSy/Z2OJs4i8t9iRNne/uwx7ppTYPcj7ss7APIWhQA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = ''configureFlags="--with-cupsbackenddir=$out/lib/cups/backend"'';
|
preConfigure = ''
|
||||||
|
mkdir -p $out/lib/cups/backend
|
||||||
|
configureFlags="--with-cupsbackenddir=$out/lib/cups/backend"
|
||||||
|
'';
|
||||||
|
|
||||||
buildInputs = [ cups ];
|
buildInputs = [ cups ];
|
||||||
|
|
||||||
env.NIX_CFLAGS_COMPILE = toString [
|
env.NIX_CFLAGS_COMPILE = toString [
|
||||||
"-include stdio.h"
|
"-include stdio.h"
|
||||||
"-Wno-error=stringop-truncation"
|
"-Wno-error=stringop-truncation"
|
||||||
"-Wno-error=deprecated-declarations"
|
"-Wno-error=deprecated-declarations"
|
||||||
"-Wno-unused-variable"
|
"-Wno-unused-variable"
|
||||||
|
"-Wno-error=address"
|
||||||
|
"-Wno-error=dangling-pointer"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -34,4 +40,4 @@ stdenv.mkDerivation rec {
|
||||||
homepage = "http://cups-bjnp.sourceforge.net";
|
homepage = "http://cups-bjnp.sourceforge.net";
|
||||||
platforms = lib.platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue