diff --git a/pkgs/applications/graphics/sane/backends/generic.nix b/pkgs/applications/graphics/sane/backends/generic.nix index 707a0b091204..e617bcc814d1 100644 --- a/pkgs/applications/graphics/sane/backends/generic.nix +++ b/pkgs/applications/graphics/sane/backends/generic.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl -, avahi, libusb, libv4l, net_snmp +, avahi, libusb1, libv4l, net_snmp , gettext, pkgconfig , gt68xxFirmware ? null, snapscanFirmware ? null , hotplugSupport ? true @@ -23,9 +23,10 @@ stdenv.mkDerivation { configureFlags = [] ++ stdenv.lib.optional (avahi != null) "--enable-avahi" - ++ stdenv.lib.optional (libusb != null) "--enable-libusb_1_0"; + ++ stdenv.lib.optional (libusb1 != null) "--enable-libusb_1_0" + ; - buildInputs = [ avahi libusb libv4l net_snmp ]; + buildInputs = [ avahi libusb1 libv4l net_snmp ]; nativeBuildInputs = [ gettext pkgconfig ]; postInstall = '' diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 38e095e81839..920423920940 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15535,7 +15535,6 @@ let gt68xxFirmware = config.sane.gt68xxFirmware or null; snapscanFirmware = config.sane.snapscanFirmware or null; hotplugSupport = config.sane.hotplugSupport or true; - libusb = libusb1; }; saneBackendsGit = callPackage ../applications/graphics/sane/backends/git.nix {