From 0acdc51d0e928efb81b6a50597e7bc35ad0c1762 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Thu, 11 Aug 2016 22:51:32 -0500 Subject: pcsclite: fix darwin build needs IOKit --- pkgs/tools/security/pcsclite/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pkgs/tools/security/pcsclite') diff --git a/pkgs/tools/security/pcsclite/default.nix b/pkgs/tools/security/pcsclite/default.nix index 509a8a12092b..8116d0dfe9f9 100644 --- a/pkgs/tools/security/pcsclite/default.nix +++ b/pkgs/tools/security/pcsclite/default.nix @@ -1,4 +1,5 @@ -{ stdenv, fetchurl, pkgconfig, udev, dbus_libs, perl, python2 }: +{ stdenv, fetchurl, pkgconfig, udev, dbus_libs, perl, python2 +, IOKit ? null }: stdenv.mkDerivation rec { name = "pcsclite-${version}"; @@ -26,7 +27,8 @@ stdenv.mkDerivation rec { ''; nativeBuildInputs = [ pkgconfig perl python2 ]; - buildInputs = stdenv.lib.optionals stdenv.isLinux [ udev dbus_libs ]; + buildInputs = stdenv.lib.optionals stdenv.isLinux [ udev dbus_libs ] + ++ stdenv.lib.optionals stdenv.isDarwin [ IOKit ]; meta = with stdenv.lib; { description = "Middleware to access a smart card using SCard API (PC/SC)"; -- cgit 1.4.1