Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

udevCheckHook: remove broken cross-compilation check

Grimmauld 4e690a28 d313d940

Changed files
+6 -5
pkgs
by-name
ud
udevCheckHook
+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";