From b6c8f0a8979fd377b9d158701b4292950ad00280 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Thu, 6 Feb 2025 11:18:00 +0100 Subject: [PATCH] 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. --- pkgs/top-level/all-packages.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7e7a7b20e32e..900b41006d34 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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;