3
0
Fork 0
forked from mirrors/nixpkgs

libfreefare: fix darwin build

This commit is contained in:
Matthew Bauer 2016-08-11 22:31:04 -05:00
parent ae75531b3c
commit 122bac8f26
2 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,5 @@
{ stdenv, fetchurl, pkgconfig, libnfc, openssl }:
{ stdenv, fetchurl, pkgconfig, libnfc, openssl
, libobjc ? null }:
stdenv.mkDerivation rec {
name = "libfreefare-${version}";
@ -9,7 +10,7 @@ stdenv.mkDerivation rec {
sha256 = "0r5wfvwgf35lb1v65wavnwz2wlfyfdims6a9xpslf4lsm4a1v8xz";
};
buildInputs = [ pkgconfig libnfc openssl ];
buildInputs = [ pkgconfig libnfc openssl ] ++ stdenv.lib.optional stdenv.isDarwin libobjc;
meta = with stdenv.lib; {
description = "The libfreefare project aims to provide a convenient API for MIFARE card manipulations";

View file

@ -8103,7 +8103,9 @@ in
libffi = callPackage ../development/libraries/libffi { };
libfreefare = callPackage ../development/libraries/libfreefare { };
libfreefare = callPackage ../development/libraries/libfreefare {
inherit (darwin) libobjc;
};
libftdi = callPackage ../development/libraries/libftdi { };