2016-03-21 12:05:01 -07:00
|
|
|
{ lib, fetchurl, stdenv, ncurses,
|
2018-02-05 05:43:31 -08:00
|
|
|
IOKit, python }:
|
2007-09-02 09:54:08 -07:00
|
|
|
|
2012-04-04 07:46:17 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2016-03-07 14:15:15 -08:00
|
|
|
name = "htop-${version}";
|
2018-04-10 15:32:27 -07:00
|
|
|
version = "2.2.0";
|
2011-07-08 15:45:28 -07:00
|
|
|
|
2016-03-14 07:50:36 -07:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://hisham.hm/htop/releases/${version}/${name}.tar.gz";
|
2018-04-10 15:32:27 -07:00
|
|
|
sha256 = "0mrwpb3cpn3ai7ar33m31yklj64c3pp576vh1naqff6f21pq5mnr";
|
2008-12-11 15:18:46 -08:00
|
|
|
};
|
2011-07-08 15:45:28 -07:00
|
|
|
|
2018-02-05 05:43:31 -08:00
|
|
|
nativeBuildInputs = [ python ];
|
2016-03-21 12:05:01 -07:00
|
|
|
buildInputs =
|
|
|
|
[ ncurses ] ++
|
|
|
|
lib.optionals stdenv.isDarwin [ IOKit ];
|
2015-09-06 17:08:23 -07:00
|
|
|
|
2018-02-05 05:43:31 -08:00
|
|
|
prePatch = ''
|
|
|
|
patchShebangs scripts/MakeHeader.py
|
|
|
|
'';
|
|
|
|
|
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";
|
2016-03-19 15:18:53 -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
|
|
|
}
|