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

25 lines
669 B
Nix
Raw Normal View History

2016-03-21 19:05:01 +00:00
{ lib, fetchurl, stdenv, ncurses,
IOKit }:
stdenv.mkDerivation rec {
2016-03-07 22:15:15 +00:00
name = "htop-${version}";
version = "2.0.1";
src = fetchurl {
sha256 = "0rjn9ybqx5sav7z4gn18f1q6k23nmqyb6yydfgghzdznz9nn447l";
url = "http://hisham.hm/htop/releases/${version}/${name}.tar.gz";
};
2016-03-21 19:05:01 +00: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 simons relrod nckx ];
};
}