add htop fork for darwin (close #2690)

@vcunat made it a single conditional attribute.

Conflicts (trivial):
	lib/maintainers.nix
This commit is contained in:
Joel Taylor 2014-05-16 16:28:19 -07:00 committed by Vladimír Čunát
parent e1775895a6
commit 58971f7b14
2 changed files with 27 additions and 1 deletions

View File

@ -0,0 +1,21 @@
{ fetchurl, stdenv, ncurses, autoconf, automake }:
stdenv.mkDerivation rec {
name = "htop-0.8.2.2";
src = fetchurl {
url = "https://github.com/max-horvath/htop-osx/archive/0.8.2.2.tar.gz";
sha256 = "0qxibadn2lfqn10a5jmkv8r5ljfs0vaaa4j6psd7ppxa2w6bx5li";
};
buildInputs = [ autoconf automake ncurses ];
preConfigure = "./autogen.sh";
meta = {
description = "An interactive process viewer for Mac OS X";
homepage = "https://github.com/max-horvath/htop-osx";
platforms = stdenv.lib.platforms.darwin;
maintainers = with stdenv.lib.maintainers; [ joelteon ];
};
}

View File

@ -7054,7 +7054,12 @@ let
hostapd = callPackage ../os-specific/linux/hostapd { };
htop = callPackage ../os-specific/linux/htop { };
htop =
if stdenv.isLinux then
callPackage ../os-specific/linux/htop { }
else if stdenv.isDarwin then
callPackage ../os-specific/darwin/htop { }
else null;
# GNU/Hurd core packages.
gnu = recurseIntoAttrs (callPackage ../os-specific/gnu {