Merge pull request #96602 from xfix/htop3

htop: 2.2.0 -> 3.0.0
This commit is contained in:
Maximilian Bosch 2020-08-29 17:27:56 +02:00 committed by GitHub
commit 7c45f73701
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,24 +1,22 @@
{ lib, fetchurl, stdenv, ncurses, { lib, fetchFromGitHub, stdenv, autoreconfHook, ncurses,
IOKit, python3 }: IOKit, python3 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "htop"; pname = "htop";
version = "2.2.0"; version = "3.0.0";
src = fetchurl { src = fetchFromGitHub {
url = "https://hisham.hm/htop/releases/${version}/${pname}-${version}.tar.gz"; owner = "htop-dev";
sha256 = "0mrwpb3cpn3ai7ar33m31yklj64c3pp576vh1naqff6f21pq5mnr"; repo = pname;
rev = version;
sha256 = "096gdnpaszs5rfp7qj8npi2jkvdqpp8mznn89f97ykrg6pgagwq4";
}; };
nativeBuildInputs = [ python3 ]; nativeBuildInputs = [ autoreconfHook python3 ];
buildInputs = buildInputs =
[ ncurses ] ++ [ ncurses ] ++
lib.optionals stdenv.isDarwin [ IOKit ]; lib.optionals stdenv.isDarwin [ IOKit ];
prePatch = ''
patchShebangs scripts/MakeHeader.py
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "An interactive process viewer for Linux"; description = "An interactive process viewer for Linux";
homepage = "https://hisham.hm/htop/"; homepage = "https://hisham.hm/htop/";