systemd: check udev rules outputs in installCheckPhase (#412703)

authored by Florian Klink and committed by GitHub 29556761 6b42fb97

+14
+14
pkgs/os-specific/linux/systemd/default.nix
··· 836 mv $out/lib/sysusers.d $out/example 837 ''; 838 839 # Avoid *.EFI binary stripping. 840 # At least on aarch64-linux strip removes too much from PE32+ files: 841 # https://github.com/NixOS/nixpkgs/issues/169693
··· 836 mv $out/lib/sysusers.d $out/example 837 ''; 838 839 + doInstallCheck = true; 840 + 841 + # check udev rules exposed by systemd 842 + # can't use `udevCheckHook` here as that would introduce infinite recursion 843 + installCheckPhase = '' 844 + runHook preInstallCheck 845 + 846 + ${lib.optionalString ( 847 + !buildLibsOnly 848 + ) "$out/bin/udevadm verify --resolve-names=never --no-style $out/lib/udev/rules.d"} 849 + 850 + runHook postInstallCheck 851 + ''; 852 + 853 # Avoid *.EFI binary stripping. 854 # At least on aarch64-linux strip removes too much from PE32+ files: 855 # https://github.com/NixOS/nixpkgs/issues/169693