2020-08-29 05:34:46 -07:00
|
|
|
{ lib, fetchFromGitHub, stdenv, autoreconfHook, ncurses,
|
2019-12-25 00:02:20 -08:00
|
|
|
IOKit, python3 }:
|
2007-09-02 09:54:08 -07:00
|
|
|
|
2012-04-04 07:46:17 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "htop";
|
2020-08-29 05:34:46 -07:00
|
|
|
version = "3.0.0";
|
2011-07-08 15:45:28 -07:00
|
|
|
|
2020-08-29 05:34:46 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "htop-dev";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "096gdnpaszs5rfp7qj8npi2jkvdqpp8mznn89f97ykrg6pgagwq4";
|
2008-12-11 15:18:46 -08:00
|
|
|
};
|
2011-07-08 15:45:28 -07:00
|
|
|
|
2020-08-29 05:34:46 -07:00
|
|
|
nativeBuildInputs = [ autoreconfHook python3 ];
|
2016-03-21 12:05:01 -07:00
|
|
|
buildInputs =
|
|
|
|
[ ncurses ] ++
|
|
|
|
lib.optionals stdenv.isDarwin [ IOKit ];
|
2015-09-06 17:08:23 -07:00
|
|
|
|
2016-03-14 07:57:03 -07:00
|
|
|
meta = with stdenv.lib; {
|
2008-12-11 15:18:46 -08:00
|
|
|
description = "An interactive process viewer for Linux";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://hisham.hm/htop/";
|
2016-03-14 07:57:03 -07:00
|
|
|
license = licenses.gpl2Plus;
|
2016-03-20 14:26:09 -07:00
|
|
|
platforms = with platforms; linux ++ freebsd ++ openbsd ++ darwin;
|
2018-01-16 13:59:13 -08:00
|
|
|
maintainers = with maintainers; [ rob relrod ];
|
2008-12-11 15:18:46 -08:00
|
|
|
};
|
2007-09-02 09:54:08 -07:00
|
|
|
}
|