diff --git a/pkgs/tools/security/pcsc-tools/default.nix b/pkgs/tools/security/pcsc-tools/default.nix index 106aa54ff848..9e63572fd491 100644 --- a/pkgs/tools/security/pcsc-tools/default.nix +++ b/pkgs/tools/security/pcsc-tools/default.nix @@ -10,6 +10,7 @@ , systemd , dbus , pcsclite +, PCSC , wget , coreutils , perlPackages @@ -33,6 +34,7 @@ stdenv.mkDerivation (finalAttrs: { ]; buildInputs = [ dbus perlPackages.perl pcsclite ] + ++ lib.optional stdenv.isDarwin PCSC ++ lib.optional stdenv.isLinux systemd; nativeBuildInputs = [ @@ -89,6 +91,6 @@ stdenv.mkDerivation (finalAttrs: { license = licenses.gpl2Plus; mainProgram = "pcsc_scan"; maintainers = with maintainers; [ peterhoeg anthonyroussel ]; - platforms = platforms.linux; + platforms = platforms.unix; }; }) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d0c71aebd503..6c7f988d7e50 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11980,7 +11980,9 @@ with pkgs; pcsc-scm-scl011 = callPackage ../tools/security/pcsc-scm-scl011 { }; - pcsc-tools = callPackage ../tools/security/pcsc-tools { }; + pcsc-tools = callPackage ../tools/security/pcsc-tools { + inherit (pkgs.darwin.apple_sdk.frameworks) PCSC; + }; ifdnfc = callPackage ../tools/security/ifdnfc { };