From 848b539f97a91650bed4c07f28c25aa56bd68dc6 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sat, 9 Dec 2023 09:39:54 +0100 Subject: [PATCH] pcsc-tools: enable darwin build --- pkgs/tools/security/pcsc-tools/default.nix | 4 +++- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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 { };