git.iko.soy/typeable/nixpkgs
on master help sign in
htop: fix build on darwin
commitdb6dff75bd8905e7f7c7c679d5dc6680f65e5ae0 authorMitch Tishmack <mitch.tishmack@gmail.com> dateMon 21 Mar 2016, 14:05 (11 years ago) parent74f04dc
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 {