2015-09-30 16:08:32 +02:00
|
|
|
{ stdenv, fetchgit, autoreconfHook, pkgconfig, systemd, glib, dbus, libnl, pythonPackages }:
|
2015-09-29 16:24:20 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "neard-0.15-post-git-20510929";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.kernel.org/pub/scm/network/nfc/neard.git";
|
2016-06-02 13:26:44 +02:00
|
|
|
sha256 = "07dny1l8n46v0yn30zqa8bkyj8ay01xphc124nhf2sqwbff7nf2m";
|
2015-09-29 16:24:20 +02:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ systemd glib dbus libnl pythonPackages.python pythonPackages.wrapPython ];
|
2016-09-11 23:24:51 +02:00
|
|
|
pythonPath = [ pythonPackages.pygobject2 pythonPackages.dbus-python pythonPackages.pygtk ];
|
2015-09-29 16:24:20 +02:00
|
|
|
|
2015-10-01 14:23:22 +02:00
|
|
|
configureFlags = [ "--disable-debug" "--enable-tools" "--enable-ese" "--with-systemdsystemunitdir=$out/lib/systemd/system" ];
|
2015-09-29 16:24:20 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
2015-09-30 16:08:32 +02:00
|
|
|
install -m 0755 tools/snep-send $out/bin/
|
|
|
|
|
2015-09-29 16:24:20 +02:00
|
|
|
install -D -m644 src/neard.service $out/lib/systemd/system/neard.service
|
|
|
|
install -D -m644 src/main.conf $out/etc/neard/main.conf
|
2015-09-30 16:08:32 +02:00
|
|
|
|
2015-10-01 14:23:22 +02:00
|
|
|
# INFO: the config option "--enable-test" would copy the apps to $out/lib/neard/test/ instead
|
2015-09-30 16:08:32 +02:00
|
|
|
install -d $out/lib/neard
|
|
|
|
install -m 0755 test/* $out/lib/neard/
|
|
|
|
wrapPythonProgramsIn $out/lib/neard "$out $pythonPath"
|
2015-09-29 16:24:20 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Near Field Communication manager";
|
|
|
|
homepage = https://01.org/linux-nfc;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ tstrobel ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|