2020-08-30 02:03:01 -07:00
|
|
|
{ lib, fetchFromGitHub, stdenv, autoreconfHook
|
2020-10-01 03:26:56 -07:00
|
|
|
, ncurses, IOKit
|
2020-08-30 02:03:01 -07:00
|
|
|
}:
|
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";
|
2021-01-18 16:16:59 -08:00
|
|
|
version = "3.0.5";
|
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;
|
2021-01-18 16:16:59 -08:00
|
|
|
sha256 = "sha256-9zecDd3oZ24RyOLnKdJmR29Chx6S24Kvuf/F7RYzl4I=";
|
2008-12-11 15:18:46 -08:00
|
|
|
};
|
2011-07-08 15:45:28 -07:00
|
|
|
|
2020-10-01 03:26:56 -07:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2020-08-30 02:03:01 -07:00
|
|
|
|
|
|
|
buildInputs = [ ncurses
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [ IOKit ];
|
2015-09-06 17:08:23 -07:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2008-12-11 15:18:46 -08:00
|
|
|
description = "An interactive process viewer for Linux";
|
2020-10-01 03:26:56 -07:00
|
|
|
homepage = "https://htop.dev";
|
|
|
|
license = licenses.gpl2Only;
|
2021-03-31 15:09:50 -07:00
|
|
|
platforms = platforms.all;
|
2018-01-16 13:59:13 -08:00
|
|
|
maintainers = with maintainers; [ rob relrod ];
|
2021-02-03 05:50:16 -08:00
|
|
|
changelog = "https://github.com/htop-dev/${pname}/blob/${version}/ChangeLog";
|
2008-12-11 15:18:46 -08:00
|
|
|
};
|
2007-09-02 09:54:08 -07:00
|
|
|
}
|