3
0
Fork 0
forked from mirrors/nixpkgs

pcsclite: fix darwin build

needs IOKit
This commit is contained in:
Matthew Bauer 2016-08-11 22:51:32 -05:00
parent 3182e52fdd
commit 0acdc51d0e
2 changed files with 7 additions and 3 deletions

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)";

View file

@ -3013,7 +3013,9 @@ in
pciutils = callPackage ../tools/system/pciutils { };
pcsclite = callPackage ../tools/security/pcsclite { };
pcsclite = callPackage ../tools/security/pcsclite {
inherit (darwin.apple_sdk.frameworks) IOKit;
};
pcsctools = callPackage ../tools/security/pcsctools {
inherit (perlPackages) pcscperl Glib Gtk2 Pango;