mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
72 lines
1.6 KiB
Nix
72 lines
1.6 KiB
Nix
{ stdenv, fetchgit, autoreconfHook, coreutils, readline, python3Packages }:
|
|
|
|
let
|
|
ell = fetchgit {
|
|
url = https://git.kernel.org/pub/scm/libs/ell/ell.git;
|
|
rev = "0.10";
|
|
sha256 = "1yzbx4l3a6hbdmirgbvnrjfiwflyzd38mbxnp23gn9hg3ni3br34";
|
|
};
|
|
in stdenv.mkDerivation rec {
|
|
name = "iwd-${version}";
|
|
version = "0.8";
|
|
|
|
src = fetchgit {
|
|
url = https://git.kernel.org/pub/scm/network/wireless/iwd.git;
|
|
rev = version;
|
|
sha256 = "0bx31f77mz3rbl3xja48lb5zgwgialg7hvax889kpkz92wg26mgv";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
python3Packages.wrapPython
|
|
];
|
|
|
|
buildInputs = [
|
|
readline
|
|
python3Packages.python
|
|
];
|
|
|
|
pythonPath = [
|
|
python3Packages.dbus-python
|
|
python3Packages.pygobject3
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
configureFlags = [
|
|
"--with-dbus-datadir=$(out)/etc/"
|
|
"--with-dbus-busdir=$(out)/usr/share/dbus-1/system-services/"
|
|
"--with-systemd-unitdir=$(out)/lib/systemd/system/"
|
|
"--localstatedir=/var/"
|
|
];
|
|
|
|
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
|
|
'';
|
|
|
|
postFixup = ''
|
|
substituteInPlace $out/usr/share/dbus-1/system-services/net.connman.iwd.service \
|
|
--replace /bin/false ${coreutils}/bin/false
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|