From 442481052a4819cdba2c7acce0f9e6ac45ae1475 Mon Sep 17 00:00:00 2001 From: yangqihuang Date: Mon, 13 Jun 2022 20:34:54 +0800 Subject: [PATCH] libnfc: fix build on darwin --- pkgs/development/libraries/libnfc/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libnfc/default.nix b/pkgs/development/libraries/libnfc/default.nix index 03a9c199a680..51125420af94 100644 --- a/pkgs/development/libraries/libnfc/default.nix +++ b/pkgs/development/libraries/libnfc/default.nix @@ -15,9 +15,9 @@ stdenv.mkDerivation rec { buildInputs = [ libusb-compat-0_1 readline ]; configureFlags = [ "sysconfdir=/etc" ]; + cmakeFlags = lib.optionals stdenv.isDarwin [ "-DLIBNFC_DRIVER_PN532_I2C=OFF" "-DLIBNFC_DRIVER_PN532_SPI=OFF" ]; meta = with lib; { - broken = stdenv.isDarwin; description = "Open source library libnfc for Near Field Communication"; license = licenses.gpl3; homepage = "https://github.com/nfc-tools/libnfc";