nixpkgs-suyu/pkgs/os-specific/linux/iwd/default.nix

66 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv, fetchgit, autoreconfHook, readline, python3Packages }:
2017-04-23 23:12:21 +02:00
let
ell = fetchgit {
url = https://git.kernel.org/pub/scm/libs/ell/ell.git;
2018-07-26 11:38:50 +02:00
rev = "0.7";
sha256 = "095psnpfdy107z5qgi5zw0icqxa44dfx02lza3pd8j4ybj57n0l7";
2017-04-23 23:12:21 +02:00
};
in stdenv.mkDerivation rec {
2018-03-07 19:05:08 +01:00
name = "iwd-${version}";
2018-07-26 11:38:50 +02:00
version = "0.4";
2017-04-23 23:12:21 +02:00
src = fetchgit {
url = https://git.kernel.org/pub/scm/network/wireless/iwd.git;
2018-03-07 19:05:08 +01:00
rev = version;
2018-07-26 11:38:50 +02:00
sha256 = "1hib256jm70k6jlx486jrcv0iip52divbzhvb0f455yh28qfk0hs";
2017-04-23 23:12:21 +02:00
};
nativeBuildInputs = [
autoreconfHook
python3Packages.wrapPython
];
buildInputs = [
readline
python3Packages.python
];
2018-03-07 19:05:08 +01:00
pythonPath = [
python3Packages.dbus-python
python3Packages.pygobject3
];
enableParallelBuilding = true;
2017-04-23 23:12:21 +02:00
configureFlags = [
2018-03-07 19:05:08 +01:00
"--with-dbus-datadir=$(out)/etc/"
2018-07-01 11:58:19 +02:00
"--localstatedir=/var"
2018-03-07 19:05:08 +01:00
"--disable-systemd-service"
2017-04-23 23:12:21 +02:00
];
postUnpack = ''
ln -s ${ell} ell
patchShebangs .
2017-04-23 23:12:21 +02: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 23:12:21 +02:00
preFixup = ''
wrapPythonPrograms
'';
2017-04-23 23:12:21 +02:00
meta = with stdenv.lib; {
homepage = https://git.kernel.org/pub/scm/network/wireless/iwd.git;
description = "Wireless daemon for Linux";
license = licenses.lgpl21;
2017-04-23 23:12:21 +02:00
platforms = platforms.linux;
maintainers = [ maintainers.mic92 ];
};
}