cups: request libusb1 directly

This commit is contained in:
Florian Klink 2020-04-24 23:43:07 +02:00
parent f3a5fd548a
commit 2c621ff4f4
2 changed files with 4 additions and 6 deletions

View File

@ -13,7 +13,7 @@
, acl
, gmp
, darwin
, libusb ? null
, libusb1 ? null
, gnutls ? null
, avahi ? null
, libpaper ? null
@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig removeReferencesTo ];
buildInputs = [ zlib libjpeg libpng libtiff libusb gnutls libpaper ]
buildInputs = [ zlib libjpeg libpng libtiff libusb1 gnutls libpaper ]
++ optionals stdenv.isLinux [ avahi pam dbus ]
++ optional enableSystemd systemd
# Separate from above only to not modify order, to avoid mass rebuilds; merge this with the above at next big change.
@ -70,7 +70,7 @@ stdenv.mkDerivation rec {
"--enable-dbus"
"--enable-pam"
"--with-dbusdir=${placeholder "out"}/share/dbus-1"
] ++ optional (libusb != null) "--enable-libusb"
] ++ optional (libusb1 != null) "--enable-libusb"
++ optional (gnutls != null) "--enable-ssl"
++ optional (avahi != null) "--enable-avahi"
++ optional (libpaper != null) "--enable-libpaper"

View File

@ -25191,9 +25191,7 @@ in
clinfo = callPackage ../tools/system/clinfo { };
cups = callPackage ../misc/cups {
libusb = libusb1;
};
cups = callPackage ../misc/cups { };
cups-filters = callPackage ../misc/cups/filters.nix { };