git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #14108 from mitchty/osx-htop-fix

htop: fix build on darwin

commit93fc382f97ae1104c1883f768cba5a56d38ae8d3 authorzimbatm <zimbatm@zimbatm.com> dateMon 21 Mar 2016, 19:40 (11 years ago) parent74f04dcdb6dff7
2 files changed+8−3
pkgs/tools/system/htop/default.nix+5−2 pkgs/top-level/all-packages.nix+3−1
pkgs/tools/system/htop/default.nix+5−2
@@ -1,4 +1,5 @@
1−{ fetchurl, stdenv, ncurses }:
1+{ lib, fetchurl, stdenv, ncurses,
2+IOKit }:
23
34stdenv.mkDerivation rec {
45 name = "htop-${version}";
@@ -9,7 +10,9 @@ stdenv.mkDerivation rec {
910 url = "http://hisham.hm/htop/releases/${version}/${name}.tar.gz";
1011 };
1112
12− buildInputs = [ ncurses ];
13+ buildInputs =
14+ [ ncurses ] ++
15+ lib.optionals stdenv.isDarwin [ IOKit ];
1316
1417 meta = with stdenv.lib; {
1518 description = "An interactive process viewer for Linux";
pkgs/top-level/all-packages.nix+3−1
@@ -10309,7 +10309,9 @@ let
1030910309
1031010310 hostapd = callPackage ../os-specific/linux/hostapd { };
1031110311
10312− htop = callPackage ../tools/system/htop { };
10312+ htop = callPackage ../tools/system/htop {
10313+ inherit (darwin) IOKit;
10314+ };
1031310315
1031410316 # GNU/Hurd core packages.
1031510317 gnu = recurseIntoAttrs (callPackage ../os-specific/gnu {