pcsclite: fix darwin build

needs IOKit
This commit is contained in:
Matthew Bauer
2016-08-16 19:25:43 +00:00
parent 3182e52fdd
commit 0acdc51d0e
2 changed files with 7 additions and 3 deletions
+4 -2
View File
@@ -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)";