3
0
Fork 0
forked from mirrors/nixpkgs

htop: fix build on darwin

This commit is contained in:
Mitch Tishmack 2016-03-21 14:05:01 -05:00
parent 74f04dc83c
commit db6dff75bd
2 changed files with 8 additions and 3 deletions

View file

@ -1,4 +1,5 @@
{ fetchurl, stdenv, ncurses }:
{ lib, fetchurl, stdenv, ncurses,
IOKit }:
stdenv.mkDerivation rec {
name = "htop-${version}";
@ -9,7 +10,9 @@ stdenv.mkDerivation rec {
url = "http://hisham.hm/htop/releases/${version}/${name}.tar.gz";
};
buildInputs = [ ncurses ];
buildInputs =
[ ncurses ] ++
lib.optionals stdenv.isDarwin [ IOKit ];
meta = with stdenv.lib; {
description = "An interactive process viewer for Linux";

View file

@ -10309,7 +10309,9 @@ let
hostapd = callPackage ../os-specific/linux/hostapd { };
htop = callPackage ../tools/system/htop { };
htop = callPackage ../tools/system/htop {
inherit (darwin) IOKit;
};
# GNU/Hurd core packages.
gnu = recurseIntoAttrs (callPackage ../os-specific/gnu {