2016-03-21 20:05:01 +01:00
|
|
|
{ lib, fetchurl, stdenv, ncurses,
|
|
|
|
IOKit }:
|
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}";
|
|
|
|
version = "2.0.1";
|
2011-07-09 00:45:28 +02:00
|
|
|
|
2016-03-14 15:50:36 +01:00
|
|
|
src = fetchurl {
|
|
|
|
sha256 = "0rjn9ybqx5sav7z4gn18f1q6k23nmqyb6yydfgghzdznz9nn447l";
|
|
|
|
url = "http://hisham.hm/htop/releases/${version}/${name}.tar.gz";
|
2008-12-12 00:18:46 +01:00
|
|
|
};
|
2011-07-09 00:45:28 +02:00
|
|
|
|
2016-03-21 20:05:01 +01:00
|
|
|
buildInputs =
|
|
|
|
[ ncurses ] ++
|
|
|
|
lib.optionals stdenv.isDarwin [ IOKit ];
|
2015-09-07 02:08:23 +02:00
|
|
|
|
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;
|
2016-03-14 15:57:03 +01:00
|
|
|
maintainers = with maintainers; [ rob simons relrod nckx ];
|
2008-12-12 00:18:46 +01:00
|
|
|
};
|
2007-09-02 18:54:08 +02:00
|
|
|
}
|