My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/os-specific/linux/iwd/default.nix

74 lines
1.8 KiB

6 years ago
{ stdenv, fetchgit, autoreconfHook, pkgconfig, coreutils, readline, python3Packages }:
let
ell = fetchgit {
url = https://git.kernel.org/pub/scm/libs/ell/ell.git;
rev = "0.17";
sha256 = "0yk1qmvpy61qp82bb0w55n062jqzlkzbz0b1v5k763j98czz9rvz";
};
in stdenv.mkDerivation rec {
name = "iwd-${version}";
version = "0.14";
src = fetchgit {
url = https://git.kernel.org/pub/scm/network/wireless/iwd.git;
rev = version;
sha256 = "08ijlnwvj1w354gbv3hdnm3l4iy24qzq4bq5a9z0wynysasw09lv";
};
nativeBuildInputs = [
autoreconfHook
6 years ago
pkgconfig
python3Packages.wrapPython
];
buildInputs = [
readline
python3Packages.python
];
pythonPath = [
python3Packages.dbus-python
python3Packages.pygobject3
];
configureFlags = [
"--with-dbus-datadir=$(out)/etc/"
6 years ago
"--with-dbus-busdir=$(out)/usr/share/dbus-1/system-services/"
"--with-systemd-unitdir=$(out)/lib/systemd/system/"
"--localstatedir=/var/"
"--enable-wired"
];
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
'';
6 years ago
postFixup = ''
substituteInPlace $out/usr/share/dbus-1/system-services/net.connman.ead.service \
--replace /bin/false ${coreutils}/bin/false
6 years ago
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 ];
};
}