From 8ab9072e02fd28d8130c7ea7bf757df6aec50a5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Mon, 17 Oct 2022 23:41:35 +1100 Subject: [PATCH] libfreefare: fix darwin build --- pkgs/development/libraries/libfreefare/default.nix | 6 ++++-- pkgs/top-level/all-packages.nix | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libfreefare/default.nix b/pkgs/development/libraries/libfreefare/default.nix index 9fd8c1e6b613..5dd007f59754 100644 --- a/pkgs/development/libraries/libfreefare/default.nix +++ b/pkgs/development/libraries/libfreefare/default.nix @@ -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"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ac51b9fcc46b..96f24b9c05f2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19986,6 +19986,7 @@ with pkgs; libfreeaptx = callPackage ../development/libraries/libfreeaptx { }; libfreefare = callPackage ../development/libraries/libfreefare { + inherit (darwin.apple_sdk.frameworks) IOKit Security; inherit (darwin) libobjc; };