forked from mirrors/nixpkgs
pcsclite: fix darwin build
needs IOKit
This commit is contained in:
parent
3182e52fdd
commit
0acdc51d0e
|
@ -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)";
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue