From dec7ebf0cd4176770cbf3f17dba913f8c3f8e373 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Mon, 15 Apr 2024 13:09:12 -0700 Subject: [PATCH] pcsclite: make systemdSupport optional --- pkgs/tools/security/pcsclite/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/security/pcsclite/default.nix b/pkgs/tools/security/pcsclite/default.nix index 2e383cd393bd..eb85cb79bc79 100644 --- a/pkgs/tools/security/pcsclite/default.nix +++ b/pkgs/tools/security/pcsclite/default.nix @@ -10,6 +10,7 @@ , dbus , polkit , systemdLibs +, systemdSupport ? stdenv.isLinux , IOKit , testers , nix-update-script @@ -35,10 +36,10 @@ stdenv.mkDerivation (finalAttrs: { "--enable-confdir=/etc" # The OS should care on preparing the drivers into this location "--enable-usbdropdir=/var/lib/pcsc/drivers" - (lib.enableFeature stdenv.isLinux "libsystemd") + (lib.enableFeature systemdSupport "libsystemd") (lib.enableFeature polkitSupport "polkit") "--enable-ipcdir=/run/pcscd" - ] ++ lib.optionals stdenv.isLinux [ + ] ++ lib.optionals systemdSupport [ "--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system" ]; @@ -70,7 +71,7 @@ stdenv.mkDerivation (finalAttrs: { ]; buildInputs = [ python3 ] - ++ lib.optionals stdenv.isLinux [ systemdLibs ] + ++ lib.optionals systemdSupport [ systemdLibs ] ++ lib.optionals stdenv.isDarwin [ IOKit ] ++ lib.optionals polkitSupport [ dbus polkit ];