udev: choose implementation with availableOn check

This means we don't have to repeat the list of platforms we can't use
systemd on, and can instead rely on the list in systemd's derivation.
This means that the right thing will happen on other platforms that
can't use systemd, one example being microblaze.
This commit is contained in:
Alyssa Ross
2025-02-08 08:59:19 +01:00
parent 34e6fb68e5
commit b6c8f0a897
+2 -2
View File
@@ -12402,8 +12402,8 @@ with pkgs;
};
udev =
if (with stdenv.hostPlatform; isLinux && isStatic) then libudev-zero
else systemdLibs;
if lib.meta.availableOn stdenv.hostPlatform systemdLibs then systemdLibs
else libudev-zero;
sysvtools = sysvinit.override {
withoutInitTools = true;