+1
doc/hooks/index.md
+1
doc/hooks/index.md
+36
doc/hooks/udevCheckHook.section.md
+36
doc/hooks/udevCheckHook.section.md
···+The `udevCheckHook` derivation adds `udevCheckPhase` to the [`preInstallCheckHooks`](#ssec-installCheck-phase),+which finds all udev rules in all outputs and verifies them using `udevadm verify --resolve-names=never --no-style`.+It should be used in any package that has udev rules outputs to ensure the rules are and stay valid.+The hook runs in `installCheckPhase`, requiring `doInstallCheck` is enabled for the hook to take effect:+Note that for [`buildPythonPackage`](#buildpythonpackage-function) and [`buildPythonApplication`](#buildpythonapplication-function), `doInstallCheck` is enabled by default.+It is internally guarded behind `hostPlatform` supporting udev and `buildPlatform` being able to execute `udevadm`.+The hook can be disabled using `dontUdevCheck`, which is necessary if you want to run some different task in `installCheckPhase` on a package with broken udev rule outputs.