2018-11-10 17:08:23 +00:00
|
|
|
{ stdenv, fetchgit, autoreconfHook, pkgconfig, coreutils, readline, python3Packages }:
|
2017-04-23 22:12:21 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
ell = fetchgit {
|
|
|
|
url = https://git.kernel.org/pub/scm/libs/ell/ell.git;
|
2019-01-16 23:10:02 +00:00
|
|
|
rev = "0.17";
|
|
|
|
sha256 = "0yk1qmvpy61qp82bb0w55n062jqzlkzbz0b1v5k763j98czz9rvz";
|
2017-04-23 22:12:21 +01:00
|
|
|
};
|
|
|
|
in stdenv.mkDerivation rec {
|
2018-03-07 18:05:08 +00:00
|
|
|
name = "iwd-${version}";
|
2019-01-16 23:10:02 +00:00
|
|
|
version = "0.14";
|
2017-04-23 22:12:21 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = https://git.kernel.org/pub/scm/network/wireless/iwd.git;
|
2018-03-07 18:05:08 +00:00
|
|
|
rev = version;
|
2019-01-16 23:10:02 +00:00
|
|
|
sha256 = "08ijlnwvj1w354gbv3hdnm3l4iy24qzq4bq5a9z0wynysasw09lv";
|
2017-04-23 22:12:21 +01:00
|
|
|
};
|
|
|
|
|
2017-12-17 12:41:06 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
2018-11-10 17:08:23 +00:00
|
|
|
pkgconfig
|
2017-12-17 12:41:06 +00:00
|
|
|
python3Packages.wrapPython
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
readline
|
|
|
|
python3Packages.python
|
|
|
|
];
|
2018-03-07 18:05:08 +00:00
|
|
|
|
2017-12-17 12:41:06 +00:00
|
|
|
pythonPath = [
|
|
|
|
python3Packages.dbus-python
|
|
|
|
python3Packages.pygobject3
|
|
|
|
];
|
|
|
|
|
2017-04-23 22:12:21 +01:00
|
|
|
configureFlags = [
|
2018-03-07 18:05:08 +00:00
|
|
|
"--with-dbus-datadir=$(out)/etc/"
|
2018-08-25 13:26:52 +01:00
|
|
|
"--with-dbus-busdir=$(out)/usr/share/dbus-1/system-services/"
|
|
|
|
"--with-systemd-unitdir=$(out)/lib/systemd/system/"
|
|
|
|
"--localstatedir=/var/"
|
2018-11-15 22:10:00 +00:00
|
|
|
"--enable-wired"
|
2017-04-23 22:12:21 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
ln -s ${ell} ell
|
2017-12-17 12:41:06 +00:00
|
|
|
patchShebangs .
|
2017-04-23 22:12:21 +01:00
|
|
|
'';
|
|
|
|
|
2017-12-17 12:41:06 +00:00
|
|
|
postInstall = ''
|
|
|
|
cp -a test/* $out/bin/
|
|
|
|
mkdir -p $out/share
|
|
|
|
cp -a doc $out/share/
|
|
|
|
cp -a README AUTHORS TODO $out/share/doc/
|
|
|
|
'';
|
2017-04-23 22:12:21 +01:00
|
|
|
|
2017-12-17 12:41:06 +00:00
|
|
|
preFixup = ''
|
|
|
|
wrapPythonPrograms
|
|
|
|
'';
|
2017-04-23 22:12:21 +01:00
|
|
|
|
2018-08-25 13:26:52 +01:00
|
|
|
postFixup = ''
|
2018-11-15 22:10:00 +00:00
|
|
|
substituteInPlace $out/usr/share/dbus-1/system-services/net.connman.ead.service \
|
|
|
|
--replace /bin/false ${coreutils}/bin/false
|
2018-08-25 13:26:52 +01:00
|
|
|
substituteInPlace $out/usr/share/dbus-1/system-services/net.connman.iwd.service \
|
|
|
|
--replace /bin/false ${coreutils}/bin/false
|
|
|
|
'';
|
|
|
|
|
2017-04-23 22:12:21 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://git.kernel.org/pub/scm/network/wireless/iwd.git;
|
|
|
|
description = "Wireless daemon for Linux";
|
2017-12-17 12:41:06 +00:00
|
|
|
license = licenses.lgpl21;
|
2017-04-23 22:12:21 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.mic92 ];
|
|
|
|
};
|
|
|
|
}
|