libfreefare: fix darwin build
This commit is contained in:
parent
ab6176ac5b
commit
8ab9072e02
2 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
||||||
{ lib, stdenv, fetchurl, pkg-config, libnfc, openssl
|
{ lib, stdenv, fetchurl, pkg-config, libnfc, openssl
|
||||||
, libobjc ? null }:
|
, libobjc ? null
|
||||||
|
, IOKit, Security
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "libfreefare";
|
pname = "libfreefare";
|
||||||
|
@ -11,7 +13,7 @@ stdenv.mkDerivation {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ libnfc openssl ] ++ lib.optional stdenv.isDarwin libobjc;
|
buildInputs = [ libnfc openssl ] ++ lib.optionals stdenv.isDarwin [ libobjc IOKit Security ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "The libfreefare project aims to provide a convenient API for MIFARE card manipulations";
|
description = "The libfreefare project aims to provide a convenient API for MIFARE card manipulations";
|
||||||
|
|
|
@ -19986,6 +19986,7 @@ with pkgs;
|
||||||
libfreeaptx = callPackage ../development/libraries/libfreeaptx { };
|
libfreeaptx = callPackage ../development/libraries/libfreeaptx { };
|
||||||
|
|
||||||
libfreefare = callPackage ../development/libraries/libfreefare {
|
libfreefare = callPackage ../development/libraries/libfreefare {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) IOKit Security;
|
||||||
inherit (darwin) libobjc;
|
inherit (darwin) libobjc;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue