@ -1,26 +1,63 @@
{ lib , stdenv , fetchurl , autoreconfHook , pkg-config , systemd , glib , dbus , libnl , python2Packages }:
{ stdenv
, lib
, fetchurl
, autoreconfHook
, autoconf-archive
, pkg-config
, systemd
, glib
, dbus
, libnl
, python2Packages
} :
stdenv . mkDerivation rec {
pname = " n e a r d " ;
version = " 0 . 1 6 " ;
version = " 0 . 1 8 " ;
outputs = [ " o u t " " d e v " ] ;
src = fetchurl {
url = " h t t p s : / / g i t . k e r n e l . o r g / p u b / s c m / n e t w o r k / n f c / n e a r d . g i t / s n a p s h o t / n e a r d - ${ version } . t a r . g z " ;
sha256 = " 0 b p d m y x v d 3 z 5 4 p 9 5 a p z 4 b j b 5 j p 8 h b c 0 4 s i c j a p c r y j w a 8 m h 6 p b i l " ;
sha256 = " w B P j E V M V 4 u E d F r X w 8 c j O m v v N u i a A C q 2 R J F / Z t K X c k 4 s = " ;
} ;
nativeBuildInputs = [ autoreconfHook pkg-config python2Packages . wrapPython ] ;
buildInputs = [ systemd glib dbus libnl ] ++ ( with python2Packages ; [ python ] ) ;
pythonPath = with python2Packages ; [ pygobject2 dbus-python pygtk ] ;
nativeBuildInputs = [
autoreconfHook
autoconf-archive
pkg-config
python2Packages . wrapPython
] ;
buildInputs = [
systemd
glib
dbus
libnl
] ++ ( with python2Packages ; [
python
] ) ;
pythonPath = with python2Packages ; [
pygobject2
dbus-python
pygtk
] ;
strictDeps = true ;
configureFlags = [ " - - d i s a b l e - d e b u g " " - - e n a b l e - t o o l s " " - - e n a b l e - e s e " " - - w i t h - s y s t e m d s y s t e m u n i t d i r = $ o u t / l i b / s y s t e m d / s y s t e m " ] ;
enableParallelBuilding = true ;
configureFlags = [
" - - d i s a b l e - d e b u g "
" - - e n a b l e - t o o l s "
" - - e n a b l e - e s e "
" - - w i t h - s y s t e m d s y s t e m u n i t d i r = ${ placeholder " o u t " } / l i b / s y s t e m d / s y s t e m "
] ;
postInstall = ''
install - m 0755 tools/snep-send $ out/bin /
install - D - m644 src/neard.service $ out/lib/systemd/system/neard.service
install - D - m644 src/main.conf $ out/etc/neard/main.conf
# INFO: the config option "--enable-test" would copy the apps to $out/lib/neard/test/ instead
@ -31,9 +68,9 @@ stdenv.mkDerivation rec {
meta = with lib ; {
description = " N e a r F i e l d C o m m u n i c a t i o n m a n a g e r " ;
homepage = " h t t p s : / / 0 1 . o r g / l i n u x - n f c " ;
license = licenses . gpl2 ;
maintainers = with maintainers ; [ tstrobel ] ;
platforms = platforms . unix ;
homepage = " h t t p s : / / 0 1 . o r g / l i n u x - n f c " ;
license = licenses . gpl2Only ;
maintainers = with maintainers ; [ jtojnar tstrobel ] ;
platforms = platforms . unix ;
} ;
}