libnfc: specify license
- update description - update style
This commit is contained in:
parent
442481052a
commit
afb6182f9a
|
@ -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 {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libnfc";
|
pname = "libnfc";
|
||||||
|
@ -11,16 +18,29 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "5gMv/HajPrUL/vkegEqHgN2d6Yzf01dTMrx4l34KMrQ=";
|
sha256 = "5gMv/HajPrUL/vkegEqHgN2d6Yzf01dTMrx4l34KMrQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkg-config ];
|
nativeBuildInputs = [
|
||||||
buildInputs = [ libusb-compat-0_1 readline ];
|
cmake
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
configureFlags = [ "sysconfdir=/etc" ];
|
buildInputs = [
|
||||||
cmakeFlags = lib.optionals stdenv.isDarwin [ "-DLIBNFC_DRIVER_PN532_I2C=OFF" "-DLIBNFC_DRIVER_PN532_SPI=OFF" ];
|
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; {
|
meta = with lib; {
|
||||||
description = "Open source library libnfc for Near Field Communication";
|
description = "Library for Near Field Communication (NFC)";
|
||||||
license = licenses.gpl3;
|
|
||||||
homepage = "https://github.com/nfc-tools/libnfc";
|
homepage = "https://github.com/nfc-tools/libnfc";
|
||||||
|
license = licenses.lgpl3Plus;
|
||||||
maintainers = with maintainers; [ offline ];
|
maintainers = with maintainers; [ offline ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue