libusb1: Fix mingw build

`pkgsCross.mingwW64.libusb1`

`isWindows` because I assume all windows builds will have this issue,
there's no harm in it other than a slightly longer build (+<1s)

Closes IS 183400
This commit is contained in:
Artturin 2023-11-16 18:21:23 +02:00
parent 2387a37fa0
commit 427782c4c4

View File

@ -33,6 +33,9 @@ stdenv.mkDerivation rec {
dontDisableStatic = withStatic;
# libusb-1.0.rc:11: fatal error: opening dependency file .deps/libusb-1.0.Tpo: No such file or directory
dontAddDisableDepTrack = stdenv.hostPlatform.isWindows;
configureFlags =
lib.optional (!enableUdev) "--disable-udev"
++ lib.optional (withExamples) "--enable-examples-build";