Merge pull request #196415 from viraptor/libfreefare-darwin

libfreefare: fix darwin build
This commit is contained in:
Stanisław Pitucha 2022-10-18 07:47:46 +11:00 committed by GitHub
commit 7dbde85537
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,7 @@
{ lib, stdenv, fetchurl, pkg-config, libnfc, openssl
, libobjc ? null }:
, libobjc ? null
, IOKit, Security
}:
stdenv.mkDerivation {
pname = "libfreefare";
@ -11,7 +13,7 @@ stdenv.mkDerivation {
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libnfc openssl ] ++ lib.optional stdenv.isDarwin libobjc;
buildInputs = [ libnfc openssl ] ++ lib.optionals stdenv.isDarwin [ libobjc IOKit Security ];
meta = with lib; {
description = "The libfreefare project aims to provide a convenient API for MIFARE card manipulations";

View File

@ -19999,6 +19999,7 @@ with pkgs;
libfreeaptx = callPackage ../development/libraries/libfreeaptx { };
libfreefare = callPackage ../development/libraries/libfreefare {
inherit (darwin.apple_sdk.frameworks) IOKit Security;
inherit (darwin) libobjc;
};