2012-08-05 14:55:44 +02:00
|
|
|
{ stdenv, fetchurl, python }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dstat-0.7.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://dag.wieers.com/home-made/dstat/${name}.tar.bz2";
|
|
|
|
sha256 = "1bivnciwlamnl9q6i5ygr7jhs8pp833z2bkbrffvsa60szcqda9l";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e 's|/usr/bin/env python|${python}/bin/python|' \
|
|
|
|
-e "s|/usr/share/dstat|$out/share/dstat|" dstat
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = "prefix=$(out)";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://dag.wieers.com/home-made/dstat/;
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Versatile resource statistics tool";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2012-08-05 14:55:44 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ ];
|
|
|
|
};
|
|
|
|
}
|