pkgsStatic.pcsclite: fix build

If systemd support is disabled but udev is enabled, we still need to
provide a udev implementation.
This commit is contained in:
Alyssa Ross 2024-05-07 09:48:07 +02:00
parent 6e18225ca6
commit 9d4c60c019

View File

@ -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 ]