10 stdenv.mkDerivation rec {
14 src = fetchFromGitHub {
17 rev = "libnfc-${version}";
18 sha256 = "5gMv/HajPrUL/vkegEqHgN2d6Yzf01dTMrx4l34KMrQ=";
35 cmakeFlags = lib.optionals stdenv.isDarwin [
36 "-DLIBNFC_DRIVER_PN532_I2C=OFF"
37 "-DLIBNFC_DRIVER_PN532_SPI=OFF"
41 description = "Library for Near Field Communication (NFC)";
42 homepage = "https://github.com/nfc-tools/libnfc";
43 license = licenses.lgpl3Plus;
44 maintainers = with maintainers; [ offline ];
45 platforms = platforms.unix;