aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/tools/system/htop/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/system/htop/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/system/htop/default.nix25
1 files changed, 12 insertions, 13 deletions
diff --git a/nixpkgs/pkgs/tools/system/htop/default.nix b/nixpkgs/pkgs/tools/system/htop/default.nix
index c9adf5377e2..fe4622f3381 100644
--- a/nixpkgs/pkgs/tools/system/htop/default.nix
+++ b/nixpkgs/pkgs/tools/system/htop/default.nix
@@ -1,23 +1,22 @@
-{ lib, fetchurl, stdenv, ncurses,
-IOKit, python3 }:
+{ lib, fetchFromGitHub, stdenv, autoreconfHook
+, ncurses, IOKit, python3
+}:
stdenv.mkDerivation rec {
pname = "htop";
- version = "2.2.0";
+ version = "3.0.1";
- 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 = "0kjlphdvwwbj91kk91s4ksc954d3c2bznddzx2223jmb1bn9rcsa";
};
- nativeBuildInputs = [ python3 ];
- buildInputs =
- [ ncurses ] ++
- lib.optionals stdenv.isDarwin [ IOKit ];
+ nativeBuildInputs = [ autoreconfHook python3 ];
- prePatch = ''
- patchShebangs scripts/MakeHeader.py
- '';
+ buildInputs = [ ncurses
+ ] ++ lib.optionals stdenv.isDarwin [ IOKit ];
meta = with stdenv.lib; {
description = "An interactive process viewer for Linux";