nixpkgs/pkgs/tools/system/htop/default.nix

30 lines
762 B
Nix
Raw Normal View History

2016-03-21 19:05:01 +00:00
{ lib, fetchurl, stdenv, ncurses,
2018-02-05 13:43:31 +00:00
IOKit, python }:
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";
src = fetchurl {
url = "http://hisham.hm/htop/releases/${version}/${name}.tar.gz";
2018-02-05 13:43:31 +00:00
sha256 = "0j07z0xm2gj1vzvbgh4323k4db9mr7drd7gw95mmpqi61ncvwq1j";
};
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 ];
2018-02-05 13:43:31 +00:00
prePatch = ''
patchShebangs scripts/MakeHeader.py
'';
meta = with stdenv.lib; {
description = "An interactive process viewer for Linux";
homepage = https://hisham.hm/htop/;
license = licenses.gpl2Plus;
platforms = with platforms; linux ++ freebsd ++ openbsd ++ darwin;
maintainers = with maintainers; [ rob relrod ];
};
}