Merge branch 'staging' into closure-size
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
{ stdenv, fetchurl, intltool, pkgconfig, glib, polkit, cups }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.2.5";
|
||||
name = "cups-pk-helper-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.freedesktop.org/software/cups-pk-helper/releases/cups-pk-helper-${version}.tar.xz";
|
||||
sha256 = "0651ij5p5s0n3xxbaqsy72s22nx9hfkrjgvg766lkqd1cpniw8hr";
|
||||
};
|
||||
|
||||
buildInputs = [ intltool pkgconfig glib polkit cups ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "PolicyKit helper to configure cups with fine-grained privileges";
|
||||
homepage = http://www.freedesktop.org/wiki/Software/cups-pk-helper/;
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.bjornfor ];
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{ stdenv, fetchurl, pkgconfig, zlib, libjpeg, libpng, libtiff, pam
|
||||
, dbus, acl, gmp
|
||||
, dbus, acl, gmp, darwin
|
||||
, libusb ? null, gnutls ? null, avahi ? null, libpaper ? null
|
||||
}:
|
||||
|
||||
@@ -19,8 +19,11 @@ stdenv.mkDerivation {
|
||||
# FIXME: the cups libraries contains some $out/share strings so can't be split.
|
||||
outputs = [ "dev" "out" "doc" "man" ]; # TODO: above
|
||||
|
||||
buildInputs = [ pkgconfig zlib libjpeg libpng libtiff libusb gnutls avahi libpaper ]
|
||||
++ optionals stdenv.isLinux [ pam dbus acl ];
|
||||
buildInputs = [ pkgconfig zlib libjpeg libpng libtiff libusb gnutls libpaper ]
|
||||
++ optionals stdenv.isLinux [ avahi pam dbus acl ]
|
||||
++ optionals stdenv.isDarwin (with darwin; [
|
||||
configd apple_sdk.frameworks.ApplicationServices
|
||||
]);
|
||||
|
||||
propagatedBuildInputs = [ gmp ];
|
||||
|
||||
@@ -36,7 +39,11 @@ stdenv.mkDerivation {
|
||||
] ++ optional (libusb != null) "--enable-libusb"
|
||||
++ optional (gnutls != null) "--enable-ssl"
|
||||
++ optional (avahi != null) "--enable-avahi"
|
||||
++ optional (libpaper != null) "--enable-libpaper";
|
||||
++ optional (libpaper != null) "--enable-libpaper"
|
||||
++ optionals stdenv.isDarwin [
|
||||
"--with-bundledir=$out"
|
||||
"--disable-launchd"
|
||||
];
|
||||
|
||||
installFlags =
|
||||
[ # Don't try to write in /var at build time.
|
||||
|
||||
@@ -14,6 +14,12 @@ stdenv.mkDerivation rec {
|
||||
NIX_CFLAGS_COMPILE = "-include stdio.h";
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user