2016-03-21 19:05:01 +00:00
|
|
|
{ lib, fetchurl, stdenv, ncurses,
|
2018-02-05 13:43:31 +00:00
|
|
|
IOKit, python }:
|
2007-09-02 17:54:08 +01:00
|
|
|
|
2012-04-04 15:46:17 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-03-07 22:15:15 +00:00
|
|
|
name = "htop-${version}";
|
2018-02-05 13:43:31 +00:00
|
|
|
version = "2.1.0";
|
2011-07-08 23:45:28 +01:00
|
|
|
|
2016-03-14 14:50:36 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://hisham.hm/htop/releases/${version}/${name}.tar.gz";
|
2018-02-05 13:43:31 +00:00
|
|
|
sha256 = "0j07z0xm2gj1vzvbgh4323k4db9mr7drd7gw95mmpqi61ncvwq1j";
|
2008-12-11 23:18:46 +00:00
|
|
|
};
|
2011-07-08 23:45:28 +01:00
|
|
|
|
2018-02-05 13:43:31 +00:00
|
|
|
nativeBuildInputs = [ python ];
|
2016-03-21 19:05:01 +00:00
|
|
|
buildInputs =
|
|
|
|
[ ncurses ] ++
|
|
|
|
lib.optionals stdenv.isDarwin [ IOKit ];
|
2015-09-07 01:08:23 +01:00
|
|
|
|
2018-02-05 13:43:31 +00:00
|
|
|
prePatch = ''
|
|
|
|
patchShebangs scripts/MakeHeader.py
|
|
|
|
'';
|
|
|
|
|
2016-03-14 14:57:03 +00:00
|
|
|
meta = with stdenv.lib; {
|
2008-12-11 23:18:46 +00:00
|
|
|
description = "An interactive process viewer for Linux";
|
2016-03-19 22:18:53 +00:00
|
|
|
homepage = https://hisham.hm/htop/;
|
2016-03-14 14:57:03 +00:00
|
|
|
license = licenses.gpl2Plus;
|
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
|
|
|
}
|