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

30 lines
763 B
Nix
Raw Normal View History

2016-03-21 20:05:01 +01:00
{ lib, fetchurl, stdenv, ncurses,
2018-02-05 14:43:31 +01:00
IOKit, python }:
stdenv.mkDerivation rec {
2016-03-07 23:15:15 +01:00
name = "htop-${version}";
2018-04-11 00:32:27 +02:00
version = "2.2.0";
src = fetchurl {
url = "https://hisham.hm/htop/releases/${version}/${name}.tar.gz";
2018-04-11 00:32:27 +02:00
sha256 = "0mrwpb3cpn3ai7ar33m31yklj64c3pp576vh1naqff6f21pq5mnr";
};
2018-02-05 14:43:31 +01:00
nativeBuildInputs = [ python ];
2016-03-21 20:05:01 +01:00
buildInputs =
[ ncurses ] ++
lib.optionals stdenv.isDarwin [ IOKit ];
2018-02-05 14:43:31 +01: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 ];
};
}