htop: fix build on darwin
This commit is contained in:
parent
74f04dc83c
commit
db6dff75bd
|
@ -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";
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue