libusb1: propagate udevCheckHook
Dependents of `libusb1` specifically deal with hardware devices, often specifically exposing udev rules for those. It makes sense to propagate the `udevCheckHook` here. Dependents still need to enable `doInstallCheck`. It is possible to opt out of `udevCheckHook` by setting `env.dontUdevCheck`.
This commit is contained in:
parent
3f62a1ca1a
commit
b135222dc7
@ -8,6 +8,7 @@
|
||||
enableUdev ?
|
||||
stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isStatic && !stdenv.hostPlatform.isAndroid,
|
||||
udev,
|
||||
udevCheckHook,
|
||||
withExamples ? false,
|
||||
withStatic ? false,
|
||||
withDocs ? stdenv.buildPlatform.canExecute stdenv.hostPlatform,
|
||||
@ -35,6 +36,10 @@ stdenv.mkDerivation rec {
|
||||
] ++ lib.optionals withDocs [ doxygen ];
|
||||
propagatedBuildInputs = lib.optional enableUdev udev;
|
||||
|
||||
# Many dependents are dealing with hardware devices, exposing udev rules for them.
|
||||
# Checking these by propagated hook might improve discoverability
|
||||
propagatedNativeBuildInputs = lib.optional enableUdev udevCheckHook;
|
||||
|
||||
dontDisableStatic = withStatic;
|
||||
|
||||
# libusb-1.0.rc:11: fatal error: opening dependency file .deps/libusb-1.0.Tpo: No such file or directory
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user