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