1{ stdenv, fetchurl, libusb }:
2
3stdenv.mkDerivation rec {
4 name = "libnfc-${version}";
5 version = "1.7.1";
6
7 src = fetchurl {
8 url = "http://dl.bintray.com/nfc-tools/sources/libnfc-1.7.1.tar.bz2";
9 sha256 = "0wj0iwwcpmpalyk61aa7yc6i4p9hgdajkrgnlswgk0vnwbc78pll";
10 };
11
12 buildInputs = [ libusb ];
13
14 meta = with stdenv.lib; {
15 description = "Open source library libnfc for Near Field Communication";
16 license = licenses.gpl3;
17 homepage = http://code.google.com/p/libnfc/;
18 maintainers = with maintainers; [offline];
19 platforms = with platforms; unix;
20 };
21}