1{ stdenv, fetchFromGitHub, autoconf, automake, libtool, gettext, pkgconfig, glib, readline, makeWrapper }:
2
3stdenv.mkDerivation rec {
4 name = "neardal-0.7-post-git-20150930";
5
6 src = fetchFromGitHub {
7 owner = "connectivity";
8 repo = "neardal";
9 rev = "5b1c8b5c2c45c10f11cee12fbcb397f8953850d7";
10 sha256 = "12qwg7qiw2wfpaxfg2fjkmj5lls0g33xp6w433g8bnkvwlq4s29g";
11 };
12
13 buildInputs = [ autoconf automake libtool pkgconfig glib readline makeWrapper ];
14
15 preConfigure = ''
16 substituteInPlace "ncl/Makefile.am" --replace "noinst_PROGRAMS" "bin_PROGRAMS"
17 substituteInPlace "demo/Makefile.am" --replace "noinst_PROGRAMS" "bin_PROGRAMS"
18 sh autogen.sh
19 '';
20
21 configureFlags = [ "--disable-dependency-tracking" "--disable-traces" ];
22
23 meta = with stdenv.lib; {
24 description = "C APIs to exchange datas with the NFC daemon 'Neard'";
25 license = licenses.lgpl2;
26 homepage = https://01.org/linux-nfc;
27 maintainers = with maintainers; [ tstrobel ];
28 platforms = with platforms; unix;
29 };
30}