add htop fork for darwin (close #2690)

@vcunat made it a single conditional attribute.

Conflicts (trivial):
lib/maintainers.nix

authored by Joel Taylor and committed by Vladimír Čunát 58971f7b e1775895

+27 -1
+21
pkgs/os-specific/darwin/htop/default.nix
··· 1 + { fetchurl, stdenv, ncurses, autoconf, automake }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "htop-0.8.2.2"; 5 + 6 + src = fetchurl { 7 + url = "https://github.com/max-horvath/htop-osx/archive/0.8.2.2.tar.gz"; 8 + sha256 = "0qxibadn2lfqn10a5jmkv8r5ljfs0vaaa4j6psd7ppxa2w6bx5li"; 9 + }; 10 + 11 + buildInputs = [ autoconf automake ncurses ]; 12 + 13 + preConfigure = "./autogen.sh"; 14 + 15 + meta = { 16 + description = "An interactive process viewer for Mac OS X"; 17 + homepage = "https://github.com/max-horvath/htop-osx"; 18 + platforms = stdenv.lib.platforms.darwin; 19 + maintainers = with stdenv.lib.maintainers; [ joelteon ]; 20 + }; 21 + }
+6 -1
pkgs/top-level/all-packages.nix
··· 7054 7054 7055 7055 hostapd = callPackage ../os-specific/linux/hostapd { }; 7056 7056 7057 - htop = callPackage ../os-specific/linux/htop { }; 7057 + htop = 7058 + if stdenv.isLinux then 7059 + callPackage ../os-specific/linux/htop { } 7060 + else if stdenv.isDarwin then 7061 + callPackage ../os-specific/darwin/htop { } 7062 + else null; 7058 7063 7059 7064 # GNU/Hurd core packages. 7060 7065 gnu = recurseIntoAttrs (callPackage ../os-specific/gnu {