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

29 lines
694 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, stdenv, autoreconfHook
2020-10-01 11:26:56 +01:00
, ncurses, IOKit
}:
stdenv.mkDerivation rec {
pname = "htop";
2020-12-22 12:01:33 +00:00
version = "3.0.4";
2020-08-29 13:34:46 +01:00
src = fetchFromGitHub {
owner = "htop-dev";
repo = pname;
rev = version;
2020-12-22 12:01:33 +00:00
sha256 = "1fckfv96vzqjs3lzy0cgwsqv5vh1sxca3fhvgskmnkvr5bq6cia9";
};
2020-10-01 11:26:56 +01:00
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ ncurses
] ++ lib.optionals stdenv.isDarwin [ IOKit ];
meta = with lib; {
description = "An interactive process viewer for Linux";
2020-10-01 11:26:56 +01:00
homepage = "https://htop.dev";
license = licenses.gpl2Only;
platforms = with platforms; linux ++ freebsd ++ openbsd ++ darwin;
maintainers = with maintainers; [ rob relrod ];
};
}