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

28 lines
700 B
Nix
Raw Normal View History

2012-08-05 13:55:44 +01: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)";
2015-06-22 07:25:07 +01:00
meta = with stdenv.lib; {
2012-08-05 13:55:44 +01:00
homepage = http://dag.wieers.com/home-made/dstat/;
description = "Versatile resource statistics tool";
2015-06-22 07:25:07 +01:00
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ jgeerds ];
2012-08-05 13:55:44 +01:00
};
}