65 lines
1.3 KiB
Nix
65 lines
1.3 KiB
Nix
{ stdenv, fetchgit, autoreconfHook, readline, python3Packages }:
|
|
|
|
let
|
|
ell = fetchgit {
|
|
url = https://git.kernel.org/pub/scm/libs/ell/ell.git;
|
|
rev = "0.4";
|
|
sha256 = "0l203n1jnqa2mcifir8ydxhcvbiwlvk89ailm0lida83l9vdlwpv";
|
|
};
|
|
in stdenv.mkDerivation rec {
|
|
name = "iwd-${version}";
|
|
version = "0.1";
|
|
|
|
src = fetchgit {
|
|
url = https://git.kernel.org/pub/scm/network/wireless/iwd.git;
|
|
rev = version;
|
|
sha256 = "1f8c6xvcvqw8z78mskynd2fkghggcl7vfz8vxzvpx0fkqcprn5n0";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
python3Packages.wrapPython
|
|
];
|
|
|
|
buildInputs = [
|
|
readline
|
|
python3Packages.python
|
|
];
|
|
|
|
pythonPath = [
|
|
python3Packages.dbus-python
|
|
python3Packages.pygobject3
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
configureFlags = [
|
|
"--with-dbus-datadir=$(out)/etc/"
|
|
"--disable-systemd-service"
|
|
];
|
|
|
|
postUnpack = ''
|
|
ln -s ${ell} ell
|
|
patchShebangs .
|
|
'';
|
|
|
|
postInstall = ''
|
|
cp -a test/* $out/bin/
|
|
mkdir -p $out/share
|
|
cp -a doc $out/share/
|
|
cp -a README AUTHORS TODO $out/share/doc/
|
|
'';
|
|
|
|
preFixup = ''
|
|
wrapPythonPrograms
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://git.kernel.org/pub/scm/network/wireless/iwd.git;
|
|
description = "Wireless daemon for Linux";
|
|
license = licenses.lgpl21;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.mic92 ];
|
|
};
|
|
}
|