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

29 lines
693 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, stdenv, autoreconfHook
2020-10-01 12:26:56 +02:00
, ncurses, IOKit
}:
stdenv.mkDerivation rec {
pname = "htop";
2021-01-19 01:16:59 +01:00
version = "3.0.5";
2020-08-29 14:34:46 +02:00
src = fetchFromGitHub {
owner = "htop-dev";
repo = pname;
rev = version;
2021-01-19 01:16:59 +01:00
sha256 = "sha256-9zecDd3oZ24RyOLnKdJmR29Chx6S24Kvuf/F7RYzl4I=";
};
2020-10-01 12:26:56 +02:00
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ ncurses
] ++ lib.optionals stdenv.isDarwin [ IOKit ];
meta = with lib; {
description = "An interactive process viewer for Linux";
2020-10-01 12:26:56 +02:00
homepage = "https://htop.dev";
license = licenses.gpl2Only;
platforms = with platforms; linux ++ freebsd ++ openbsd ++ darwin;
maintainers = with maintainers; [ rob relrod ];
};
}