forked from mirrors/nixpkgs
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:
parent
8314510a02
commit
cb363c1033
1 changed files with 9 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchurl, python }:
|
{ stdenv, fetchurl, python, pythonPackages }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "dstat-0.7.2";
|
name = "dstat-0.7.2";
|
||||||
|
@ -8,7 +8,9 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "1bivnciwlamnl9q6i5ygr7jhs8pp833z2bkbrffvsa60szcqda9l";
|
sha256 = "1bivnciwlamnl9q6i5ygr7jhs8pp833z2bkbrffvsa60szcqda9l";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ];
|
buildInputs = with pythonPackages; [ python-wifi wrapPython ];
|
||||||
|
|
||||||
|
pythonPath = with pythonPackages; [ python-wifi ];
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
sed -i -e 's|/usr/bin/env python|${python}/bin/python|' \
|
sed -i -e 's|/usr/bin/env python|${python}/bin/python|' \
|
||||||
|
@ -17,11 +19,15 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
makeFlags = "prefix=$(out)";
|
makeFlags = "prefix=$(out)";
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapPythonProgramsIn $out/bin "$out $pythonPath"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://dag.wieers.com/home-made/dstat/;
|
homepage = http://dag.wieers.com/home-made/dstat/;
|
||||||
description = "Versatile resource statistics tool";
|
description = "Versatile resource statistics tool";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ jgeerds ];
|
maintainers = with maintainers; [ jgeerds nckx ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue