From 9d4c60c01999b240fbc0109bb9286e212d8bbbdc Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 7 May 2024 09:48:07 +0200 Subject: [PATCH] pkgsStatic.pcsclite: fix build If systemd support is disabled but udev is enabled, we still need to provide a udev implementation. --- pkgs/tools/security/pcsclite/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/security/pcsclite/default.nix b/pkgs/tools/security/pcsclite/default.nix index 115cb10c014e..e75be683a6f3 100644 --- a/pkgs/tools/security/pcsclite/default.nix +++ b/pkgs/tools/security/pcsclite/default.nix @@ -10,6 +10,7 @@ , dbus , polkit , systemdLibs +, udev , dbusSupport ? stdenv.isLinux , systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemdLibs , udevSupport ? dbusSupport @@ -83,6 +84,7 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ python3 ] ++ lib.optionals systemdSupport [ systemdLibs ] + ++ lib.optionals (!systemdSupport && udevSupport) [ udev ] ++ lib.optionals stdenv.isDarwin [ IOKit ] ++ lib.optionals dbusSupport [ dbus ] ++ lib.optionals polkitSupport [ polkit ]