2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, pkgconfig, glib, readline, makeWrapper }:
|
2015-09-30 10:35:49 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2015-09-30 10:35:49 +01:00
|
|
|
name = "neardal-0.7-post-git-20150930";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "connectivity";
|
|
|
|
repo = "neardal";
|
|
|
|
rev = "5b1c8b5c2c45c10f11cee12fbcb397f8953850d7";
|
|
|
|
sha256 = "12qwg7qiw2wfpaxfg2fjkmj5lls0g33xp6w433g8bnkvwlq4s29g";
|
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ autoconf automake libtool glib readline makeWrapper ];
|
2015-09-30 10:35:49 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
2015-09-30 15:05:54 +01:00
|
|
|
substituteInPlace "ncl/Makefile.am" --replace "noinst_PROGRAMS" "bin_PROGRAMS"
|
|
|
|
substituteInPlace "demo/Makefile.am" --replace "noinst_PROGRAMS" "bin_PROGRAMS"
|
2015-09-30 10:35:49 +01:00
|
|
|
sh autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [ "--disable-dependency-tracking" "--disable-traces" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "C APIs to exchange datas with the NFC daemon 'Neard'";
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
homepage = https://01.org/linux-nfc;
|
|
|
|
maintainers = with maintainers; [ tstrobel ];
|
2017-04-08 03:59:57 +01:00
|
|
|
platforms = platforms.linux;
|
2015-09-30 10:35:49 +01:00
|
|
|
};
|
|
|
|
}
|