dstat: add python-wifi dependency for --wifi

This is limited to kernels with the (legacy) Wireless Extensions,
and supported wireless cards. Also add myself as a maintainer.

CC maintainer @jgeerds
This commit is contained in:
Tobias Geerinckx-Rice 2015-09-14 23:09:17 +02:00
parent 8314510a02
commit cb363c1033

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, python }:
{ stdenv, fetchurl, python, pythonPackages }:
stdenv.mkDerivation rec {
name = "dstat-0.7.2";
@ -8,7 +8,9 @@ stdenv.mkDerivation rec {
sha256 = "1bivnciwlamnl9q6i5ygr7jhs8pp833z2bkbrffvsa60szcqda9l";
};
buildInputs = [ ];
buildInputs = with pythonPackages; [ python-wifi wrapPython ];
pythonPath = with pythonPackages; [ python-wifi ];
patchPhase = ''
sed -i -e 's|/usr/bin/env python|${python}/bin/python|' \
@ -17,11 +19,15 @@ stdenv.mkDerivation rec {
makeFlags = "prefix=$(out)";
postInstall = ''
wrapPythonProgramsIn $out/bin "$out $pythonPath"
'';
meta = with stdenv.lib; {
homepage = http://dag.wieers.com/home-made/dstat/;
description = "Versatile resource statistics tool";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ jgeerds ];
maintainers = with maintainers; [ jgeerds nckx ];
};
}