diff --git a/pkgs/os-specific/darwin/htop/default.nix b/pkgs/os-specific/darwin/htop/default.nix index 65e8b09db348..3f076b838d42 100644 --- a/pkgs/os-specific/darwin/htop/default.nix +++ b/pkgs/os-specific/darwin/htop/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, stdenv, ncurses, autoconf, automake }: +{ fetchurl, stdenv, ncurses, autoconf, automake, IOKit }: stdenv.mkDerivation rec { name = "htop-0.8.2.2"; @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "0qxibadn2lfqn10a5jmkv8r5ljfs0vaaa4j6psd7ppxa2w6bx5li"; }; - buildInputs = [ autoconf automake ncurses ]; + buildInputs = [ autoconf automake ncurses IOKit ]; preConfigure = "./autogen.sh"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index cbfbf1bce1d9..db16f1b7fc55 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9738,7 +9738,9 @@ let if stdenv.isLinux then callPackage ../os-specific/linux/htop { } else if stdenv.isDarwin then - callPackage ../os-specific/darwin/htop { } + callPackage ../os-specific/darwin/htop { + inherit (darwin.apple_sdk.frameworks) IOKit; + } else null; # GNU/Hurd core packages.