3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/system/htop/default.nix

30 lines
763 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-04-10 23:32:27 +01:00
version = "2.2.0";
src = fetchurl {
url = "https://hisham.hm/htop/releases/${version}/${name}.tar.gz";
2018-04-10 23:32:27 +01:00
sha256 = "0mrwpb3cpn3ai7ar33m31yklj64c3pp576vh1naqff6f21pq5mnr";
};
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 ];
};
}