pcsc-cyberjack: Fix build against libusb

Commit 59281f742a changed libusb so that
it no longer propagates libusb1. This in turn caused the pcsc-cyberjack
build to fail with an error like this:

  usbdev.c:68:3: error: #error "Neither HAL nor USB1 found!. Please install at least either of them."

I'm committing this directly to master, since I'm the maintainer of the
package and the build also is *already* broken. So the worst case that
could happen is that the build is still broken afterwards.

Signed-off-by: aszlig <aszlig@nix.build>
This commit is contained in:
aszlig 2020-04-08 21:23:38 +02:00
parent 3847ec0e35
commit 05f3d961a9
No known key found for this signature in database
GPG key ID: 684089CE67EBB691

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, libusb, pcsclite }:
{ stdenv, fetchurl, pkgconfig, libusb1, pcsclite }:
stdenv.mkDerivation rec {
pname = "pcsc-cyberjack";
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
outputs = [ "out" "tools" ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libusb pcsclite ];
buildInputs = [ libusb1 pcsclite ];
configureFlags = [
"--with-usbdropdir=${placeholder "out"}/pcsc/drivers"