summary refs log tree commit diff
path: root/pkgs/os-specific/linux/dstat
diff options
context:
space:
mode:
authorMathijs Kwik <mathijs@bluescreen303.nl>2012-08-05 14:55:44 +0200
committerMathijs Kwik <mathijs@bluescreen303.nl>2012-08-05 15:10:26 +0200
commite8afe3c1c841eddbb1462ba48c1c432bea1f6d8d (patch)
treef998050836a3eff7e1bf289fe3516e920ba7d412 /pkgs/os-specific/linux/dstat
parentaed4ee4025a518db48782779ab018aabea7570a1 (diff)
downloadnixpkgs-e8afe3c1c841eddbb1462ba48c1c432bea1f6d8d.tar
nixpkgs-e8afe3c1c841eddbb1462ba48c1c432bea1f6d8d.tar.gz
nixpkgs-e8afe3c1c841eddbb1462ba48c1c432bea1f6d8d.tar.bz2
nixpkgs-e8afe3c1c841eddbb1462ba48c1c432bea1f6d8d.tar.lz
nixpkgs-e8afe3c1c841eddbb1462ba48c1c432bea1f6d8d.tar.xz
nixpkgs-e8afe3c1c841eddbb1462ba48c1c432bea1f6d8d.tar.zst
nixpkgs-e8afe3c1c841eddbb1462ba48c1c432bea1f6d8d.zip
add package dstat
Diffstat (limited to 'pkgs/os-specific/linux/dstat')
-rw-r--r--pkgs/os-specific/linux/dstat/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/dstat/default.nix b/pkgs/os-specific/linux/dstat/default.nix
new file mode 100644
index 00000000000..fb454c78788
--- /dev/null
+++ b/pkgs/os-specific/linux/dstat/default.nix
@@ -0,0 +1,27 @@
+{ 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/;
+    description = "Versatile resource statistics tool.";
+    license = "GPLv2";
+    platforms = stdenv.lib.platforms.linux;
+    maintainers = [ ];
+  };
+}