2016-03-21 20:05:01 +01:00
|
|
|
{ lib, fetchurl, stdenv, ncurses,
|
2018-02-05 14:43:31 +01:00
|
|
|
IOKit, python }:
|
2007-09-02 18:54:08 +02:00
|
|
|
|
2012-04-04 16:46:17 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2016-03-07 23:15:15 +01:00
|
|
|
name = "htop-${version}";
|
2018-04-11 00:32:27 +02:00
|
|
|
version = "2.2.0";
|
2011-07-09 00:45:28 +02:00
|
|
|
|
2016-03-14 15:50:36 +01:00
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://hisham.hm/htop/releases/${version}/${name}.tar.gz";
|
2018-04-11 00:32:27 +02:00
|
|
|
sha256 = "0mrwpb3cpn3ai7ar33m31yklj64c3pp576vh1naqff6f21pq5mnr";
|
2008-12-12 00:18:46 +01:00
|
|
|
};
|
2011-07-09 00:45:28 +02:00
|
|
|
|
2018-02-05 14:43:31 +01:00
|
|
|
nativeBuildInputs = [ python ];
|
2016-03-21 20:05:01 +01:00
|
|
|
buildInputs =
|
|
|
|
[ ncurses ] ++
|
|
|
|
lib.optionals stdenv.isDarwin [ IOKit ];
|
2015-09-07 02:08:23 +02:00
|
|
|
|
2018-02-05 14:43:31 +01:00
|
|
|
prePatch = ''
|
|
|
|
patchShebangs scripts/MakeHeader.py
|
|
|
|
'';
|
|
|
|
|
2016-03-14 15:57:03 +01:00
|
|
|
meta = with stdenv.lib; {
|
2008-12-12 00:18:46 +01:00
|
|
|
description = "An interactive process viewer for Linux";
|
2016-03-19 23:18:53 +01:00
|
|
|
homepage = https://hisham.hm/htop/;
|
2016-03-14 15:57:03 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2016-03-20 22:26:09 +01:00
|
|
|
platforms = with platforms; linux ++ freebsd ++ openbsd ++ darwin;
|
2018-01-16 22:59:13 +01:00
|
|
|
maintainers = with maintainers; [ rob relrod ];
|
2008-12-12 00:18:46 +01:00
|
|
|
};
|
2007-09-02 18:54:08 +02:00
|
|
|
}
|