add htop fork for darwin (close #2690)
@vcunat made it a single conditional attribute. Conflicts (trivial): lib/maintainers.nix
This commit is contained in:
parent
e1775895a6
commit
58971f7b14
21
pkgs/os-specific/darwin/htop/default.nix
Normal file
21
pkgs/os-specific/darwin/htop/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user