Skip to content

Commit

Permalink
Merge pull request #96602 from xfix/htop3
Browse files Browse the repository at this point in the history
htop: 2.2.0 -> 3.0.0
  • Loading branch information
Ma27 authored Aug 29, 2020
2 parents c376f3e + 19023de commit 7c45f73
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions pkgs/tools/system/htop/default.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
{ lib, fetchurl, stdenv, ncurses,
{ lib, fetchFromGitHub, stdenv, autoreconfHook, ncurses,
IOKit, python3 }:

stdenv.mkDerivation rec {
pname = "htop";
version = "2.2.0";
version = "3.0.0";

src = fetchurl {
url = "https://hisham.hm/htop/releases/${version}/${pname}-${version}.tar.gz";
sha256 = "0mrwpb3cpn3ai7ar33m31yklj64c3pp576vh1naqff6f21pq5mnr";
src = fetchFromGitHub {
owner = "htop-dev";
repo = pname;
rev = version;
sha256 = "096gdnpaszs5rfp7qj8npi2jkvdqpp8mznn89f97ykrg6pgagwq4";
};

nativeBuildInputs = [ python3 ];
nativeBuildInputs = [ autoreconfHook python3 ];
buildInputs =
[ ncurses ] ++
lib.optionals stdenv.isDarwin [ IOKit ];

prePatch = ''
patchShebangs scripts/MakeHeader.py
'';

meta = with stdenv.lib; {
description = "An interactive process viewer for Linux";
homepage = "https://hisham.hm/htop/";
Expand Down

0 comments on commit 7c45f73

Please sign in to comment.