depot/third_party/nixpkgs/pkgs/tools/system/htop/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

29 lines
769 B
Nix

{ lib, fetchurl, stdenv, ncurses,
IOKit, python3 }:
stdenv.mkDerivation rec {
pname = "htop";
version = "2.2.0";
src = fetchurl {
url = "https://hisham.hm/htop/releases/${version}/${pname}-${version}.tar.gz";
sha256 = "0mrwpb3cpn3ai7ar33m31yklj64c3pp576vh1naqff6f21pq5mnr";
};
nativeBuildInputs = [ python3 ];
buildInputs =
[ ncurses ] ++
lib.optionals stdenv.isDarwin [ IOKit ];
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 ];
};
}