about summary refs log tree commit diff
path: root/pkgs/tools/system/htop
diff options
context:
space:
mode:
authorzimbatm <zimbatm@zimbatm.com>2016-03-19 22:18:53 +0000
committerzimbatm <zimbatm@zimbatm.com>2016-03-19 22:20:20 +0000
commitd9e60e4d43ae21dbd63b76cf86edcc8f56c4d764 (patch)
tree61179932ef1ade405e0ee1ddec1aaf1523e6e5c7 /pkgs/tools/system/htop
parent1a7a7d8ef9f54651d3eb0ba772802a7c79049ec6 (diff)
htop: merge both implementations
htop 2.0+ is now cross-platform
Diffstat (limited to 'pkgs/tools/system/htop')
-rw-r--r--pkgs/tools/system/htop/default.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/tools/system/htop/default.nix b/pkgs/tools/system/htop/default.nix
new file mode 100644
index 0000000000000..9c05c07c052cd
--- /dev/null
+++ b/pkgs/tools/system/htop/default.nix
@@ -0,0 +1,21 @@
+{ fetchurl, stdenv, ncurses }:
+
+stdenv.mkDerivation rec {
+  name = "htop-${version}";
+  version = "2.0.1";
+
+  src = fetchurl {
+    sha256 = "0rjn9ybqx5sav7z4gn18f1q6k23nmqyb6yydfgghzdznz9nn447l";
+    url = "http://hisham.hm/htop/releases/${version}/${name}.tar.gz";
+  };
+
+  buildInputs = [ ncurses ];
+
+  meta = with stdenv.lib; {
+    description = "An interactive process viewer for Linux";
+    homepage = https://hisham.hm/htop/;
+    license = licenses.gpl2Plus;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ rob simons relrod nckx ];
+  };
+}