From afb6182f9a3f3b14eb63a250e4b6fb2f4ad7efd3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 13 Jun 2022 22:58:05 +0200 Subject: [PATCH] libnfc: specify license - update description - update style --- pkgs/development/libraries/libnfc/default.nix | 34 +++++++++++++++---- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/pkgs/development/libraries/libnfc/default.nix b/pkgs/development/libraries/libnfc/default.nix index 51125420af9..88bc909ea0e 100644 --- a/pkgs/development/libraries/libnfc/default.nix +++ b/pkgs/development/libraries/libnfc/default.nix @@ -1,4 +1,11 @@ -{ lib, stdenv, fetchFromGitHub, libusb-compat-0_1, readline, cmake, pkg-config }: +{ lib +, stdenv +, fetchFromGitHub +, libusb-compat-0_1 +, readline +, cmake +, pkg-config +}: stdenv.mkDerivation rec { pname = "libnfc"; @@ -11,16 +18,29 @@ stdenv.mkDerivation rec { sha256 = "5gMv/HajPrUL/vkegEqHgN2d6Yzf01dTMrx4l34KMrQ="; }; - nativeBuildInputs = [ cmake pkg-config ]; - buildInputs = [ libusb-compat-0_1 readline ]; + nativeBuildInputs = [ + cmake + pkg-config + ]; - configureFlags = [ "sysconfdir=/etc" ]; - cmakeFlags = lib.optionals stdenv.isDarwin [ "-DLIBNFC_DRIVER_PN532_I2C=OFF" "-DLIBNFC_DRIVER_PN532_SPI=OFF" ]; + 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; { - description = "Open source library libnfc for Near Field Communication"; - license = licenses.gpl3; + description = "Library for Near Field Communication (NFC)"; homepage = "https://github.com/nfc-tools/libnfc"; + license = licenses.lgpl3Plus; maintainers = with maintainers; [ offline ]; platforms = platforms.unix; };