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

65 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchgit, autoreconfHook, readline, python3Packages }:
2017-04-23 22:12:21 +01:00
let
ell = fetchgit {
url = https://git.kernel.org/pub/scm/libs/ell/ell.git;
2018-05-06 19:10:24 +01:00
rev = "0.5";
sha256 = "0xw53bigh99nhacjb67qs1g145fwls7065l8vsrziwzpkyd5s6a8";
2017-04-23 22:12:21 +01:00
};
in stdenv.mkDerivation rec {
2018-03-07 18:05:08 +00:00
name = "iwd-${version}";
2018-05-06 19:10:24 +01:00
version = "0.2";
2017-04-23 22:12:21 +01:00
src = fetchgit {
url = https://git.kernel.org/pub/scm/network/wireless/iwd.git;
2018-03-07 18:05:08 +00:00
rev = version;
2018-05-06 19:10:24 +01:00
sha256 = "0khc017s27n6y6c6wbqhmcghzggnagxbi8j36hl5g73y6s44vx42";
2017-04-23 22:12:21 +01:00
};
nativeBuildInputs = [
autoreconfHook
python3Packages.wrapPython
];
buildInputs = [
readline
python3Packages.python
];
2018-03-07 18:05:08 +00:00
pythonPath = [
python3Packages.dbus-python
python3Packages.pygobject3
];
enableParallelBuilding = true;
2017-04-23 22:12:21 +01:00
configureFlags = [
2018-03-07 18:05:08 +00:00
"--with-dbus-datadir=$(out)/etc/"
"--disable-systemd-service"
2017-04-23 22:12:21 +01:00
];
postUnpack = ''
ln -s ${ell} ell
patchShebangs .
2017-04-23 22:12:21 +01: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 22:12:21 +01:00
preFixup = ''
wrapPythonPrograms
'';
2017-04-23 22:12:21 +01: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 22:12:21 +01:00
platforms = platforms.linux;
maintainers = [ maintainers.mic92 ];
};
}