2020-09-25 04:45:31 +00:00
|
|
|
{ lib, fetchFromGitHub, stdenv, autoreconfHook
|
2020-10-07 09:15:18 +00:00
|
|
|
, ncurses, IOKit
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "htop";
|
2020-12-25 13:55:36 +00:00
|
|
|
version = "3.0.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "htop-dev";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-12-25 13:55:36 +00:00
|
|
|
sha256 = "1fckfv96vzqjs3lzy0cgwsqv5vh1sxca3fhvgskmnkvr5bq6cia9";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
buildInputs = [ ncurses
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [ IOKit ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An interactive process viewer for Linux";
|
2020-10-07 09:15:18 +00:00
|
|
|
homepage = "https://htop.dev";
|
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = with platforms; linux ++ freebsd ++ openbsd ++ darwin;
|
|
|
|
maintainers = with maintainers; [ rob relrod ];
|
|
|
|
};
|
|
|
|
}
|