2020-08-30 10:03:01 +01:00
|
|
|
{ lib, fetchFromGitHub, stdenv, autoreconfHook
|
2020-10-01 11:26:56 +01:00
|
|
|
, ncurses, IOKit
|
2020-08-30 10:03:01 +01:00
|
|
|
}:
|
2007-09-02 17:54:08 +01:00
|
|
|
|
2012-04-04 15:46:17 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "htop";
|
2021-01-19 00:16:59 +00:00
|
|
|
version = "3.0.5";
|
2011-07-08 23:45:28 +01:00
|
|
|
|
2020-08-29 13:34:46 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "htop-dev";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-01-19 00:16:59 +00:00
|
|
|
sha256 = "sha256-9zecDd3oZ24RyOLnKdJmR29Chx6S24Kvuf/F7RYzl4I=";
|
2008-12-11 23:18:46 +00:00
|
|
|
};
|
2011-07-08 23:45:28 +01:00
|
|
|
|
2020-10-01 11:26:56 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2020-08-30 10:03:01 +01:00
|
|
|
|
|
|
|
buildInputs = [ ncurses
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [ IOKit ];
|
2015-09-07 01:08:23 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2008-12-11 23:18:46 +00:00
|
|
|
description = "An interactive process viewer for Linux";
|
2020-10-01 11:26:56 +01: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 17:54:08 +01:00
|
|
|
}
|