mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
29 lines
701 B
Nix
29 lines
701 B
Nix
{ lib, fetchFromGitHub, stdenv, autoreconfHook
|
|
, ncurses, IOKit
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "htop";
|
|
version = "3.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "htop-dev";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1qmqhbnc5yw4brd24yrp85k09770c1c00nl03mkv5pdz2bvqivk7";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ ncurses
|
|
] ++ lib.optionals stdenv.isDarwin [ IOKit ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "An interactive process viewer for Linux";
|
|
homepage = "https://htop.dev";
|
|
license = licenses.gpl2Only;
|
|
platforms = with platforms; linux ++ freebsd ++ openbsd ++ darwin;
|
|
maintainers = with maintainers; [ rob relrod ];
|
|
};
|
|
}
|