forked from mirrors/nixpkgs
libfreefare: fix darwin build
This commit is contained in:
parent
ae75531b3c
commit
122bac8f26
|
@ -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";
|
||||
|
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue