2020-08-30 02:03:01 -07:00
|
|
|
{ lib, fetchFromGitHub, stdenv, autoreconfHook
|
|
|
|
, ncurses, IOKit, python3
|
|
|
|
, fetchpatch
|
|
|
|
}:
|
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-30 02:03:01 -07:00
|
|
|
patches = [
|
|
|
|
# Never use glyphs for checkmarks. Issue - https://github.com/htop-dev/htop/issues/29
|
|
|
|
# Remove with the next release.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/htop-dev/htop/commit/96074058278829facb86f6f4de099d56a00a0c0e.patch";
|
|
|
|
sha256 = "1rnfvjfsvfgr1s7kzr1hk6nwik6shcq4mg6dlbgdq0f2fz0cnazk";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-08-29 05:34:46 -07:00
|
|
|
nativeBuildInputs = [ autoreconfHook python3 ];
|
2020-08-30 02:03: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
|
|
|
}
|