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

28 lines
729 B
Nix
Raw Normal View History

2020-08-29 05:34:46 -07:00
{ lib, fetchFromGitHub, stdenv, autoreconfHook, ncurses,
2019-12-25 00:02:20 -08:00
IOKit, python3 }:
stdenv.mkDerivation rec {
pname = "htop";
2020-08-29 05:34:46 -07:00
version = "3.0.0";
2020-08-29 05:34:46 -07:00
src = fetchFromGitHub {
owner = "htop-dev";
repo = pname;
rev = version;
sha256 = "096gdnpaszs5rfp7qj8npi2jkvdqpp8mznn89f97ykrg6pgagwq4";
};
2020-08-29 05:34:46 -07:00
nativeBuildInputs = [ autoreconfHook python3 ];
2016-03-21 12:05:01 -07:00
buildInputs =
[ ncurses ] ++
lib.optionals stdenv.isDarwin [ IOKit ];
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 ];
};
}