summary refs log tree commit diff
path: root/pkgs/os-specific/linux/iotop/default.nix
blob: 8e181d3d5cf5ab1d47d31074907d30e4d88fee27 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchurl, buildPythonPackage, pythonPackages }:

buildPythonPackage rec {
  name = "iotop-0.6";
  namePrefix = "";

  src = fetchurl {
    url = "http://guichaz.free.fr/iotop/files/${name}.tar.bz2";
    sha256 = "0nzprs6zqax0cwq8h7hnszdl3d2m4c2d4vjfxfxbnjfs9sia5pis";
  };

  pythonPath = [ pythonPackages.curses ];

  postInstall =
    ''
      # Put the man page in the right place.
      mv $out/lib/python*/site-packages/iotop-*/share $out
    '';

  doCheck = false;

  meta = {
    description = "A tool to find out the processes doing the most IO";
    maintainers = [ stdenv.lib.maintainers.raskin ];
    platforms = stdenv.lib.platforms.linux;
  };
}