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.5";
|
|
sha256 = "0xw53bigh99nhacjb67qs1g145fwls7065l8vsrziwzpkyd5s6a8";
|
|
};
|
|
in stdenv.mkDerivation rec {
|
|
name = "iwd-${version}";
|
|
version = "0.2";
|
|
|
|
src = fetchgit {
|
|
url = https://git.kernel.org/pub/scm/network/wireless/iwd.git;
|
|
rev = version;
|
|
sha256 = "0khc017s27n6y6c6wbqhmcghzggnagxbi8j36hl5g73y6s44vx42";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|