Commit b6c8f0a8 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

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.
parent 34e6fb68
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;