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

25 lines
657 B
Nix
Raw Normal View History

2016-03-21 12:05:01 -07:00
{ lib, fetchurl, stdenv, ncurses,
IOKit }:
stdenv.mkDerivation rec {
2016-03-07 14:15:15 -08:00
name = "htop-${version}";
2016-07-22 15:03:34 -07:00
version = "2.0.2";
src = fetchurl {
2016-07-22 15:03:34 -07:00
sha256 = "11zlwadm6dpkrlfvf3z3xll26yyffa7qrxd1w72y1kl0rgffk6qp";
url = "http://hisham.hm/htop/releases/${version}/${name}.tar.gz";
};
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 ];
};
}