aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/tools/system/htop/default.nix
blob: fe4622f3381eaeebb06a6e513eb0698ecb31ac58 (plain)
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
28
{ lib, fetchFromGitHub, stdenv, autoreconfHook
, ncurses, IOKit, python3
}:

stdenv.mkDerivation rec {
  pname = "htop";
  version = "3.0.1";

  src = fetchFromGitHub {
    owner = "htop-dev";
    repo = pname;
    rev = version;
    sha256 = "0kjlphdvwwbj91kk91s4ksc954d3c2bznddzx2223jmb1bn9rcsa";
  };

  nativeBuildInputs = [ autoreconfHook python3 ];

  buildInputs = [ ncurses
  ] ++ lib.optionals stdenv.isDarwin [ IOKit ];

  meta = with stdenv.lib; {
    description = "An interactive process viewer for Linux";
    homepage = "https://hisham.hm/htop/";
    license = licenses.gpl2Plus;
    platforms = with platforms; linux ++ freebsd ++ openbsd ++ darwin;
    maintainers = with maintainers; [ rob relrod ];
  };
}