nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchFromGitHub, libusb-compat-0_1, readline, cmake, pkg-config }:
2
3stdenv.mkDerivation rec {
4 pname = "libnfc";
5 version = "1.8.0";
6
7 src = fetchFromGitHub {
8 owner = "nfc-tools";
9 repo = pname;
10 rev = "libnfc-${version}";
11 sha256 = "5gMv/HajPrUL/vkegEqHgN2d6Yzf01dTMrx4l34KMrQ=";
12 };
13
14 nativeBuildInputs = [ cmake pkg-config ];
15 buildInputs = [ libusb-compat-0_1 readline ];
16
17 configureFlags = [ "sysconfdir=/etc" ];
18
19 meta = with lib; {
20 broken = stdenv.isDarwin;
21 description = "Open source library libnfc for Near Field Communication";
22 license = licenses.gpl3;
23 homepage = "https://github.com/nfc-tools/libnfc";
24 maintainers = with maintainers; [ offline ];
25 platforms = platforms.unix;
26 };
27}