udevCheckHook: remove broken cross-compilation check (#412708)

authored by Pol Dellaiera and committed by GitHub 03cb8b01 464a6414

+6 -5
+6 -5
pkgs/by-name/ud/udevCheckHook/package.nix
··· 2 2 lib, 3 3 makeSetupHook, 4 4 systemdMinimal, 5 - udev, 6 5 stdenv, 7 6 }: 8 7 let 9 8 # udev rules can only be checked if systemd (specifically, 'udevadm') can be executed on build platform 10 - # if udev is not available on hostPlatform, there is no point in checking rules 11 - applyHook = 12 - lib.meta.availableOn stdenv.hostPlatform udev 13 - && lib.meta.availableOn stdenv.buildPlatform systemdMinimal; 9 + # If cross-compiling linux -> non-linux, udev rules are still checked, even if they end up being unused. 10 + # This is not a problem: 11 + # - If there are no udev rules, the hook is a noop 12 + # - If the udev rules are broken, they should be flagged as such 13 + # - if rules are not needed on a target platform where they are broken, they should be deleted from package output 14 + applyHook = lib.meta.availableOn stdenv.buildPlatform systemdMinimal; 14 15 in 15 16 makeSetupHook { 16 17 name = "udev-check-hook";