diff options
author | Mitch Tishmack <mitch.tishmack@gmail.com> | 2016-03-21 14:05:01 -0500 |
---|---|---|
committer | Mitch Tishmack <mitch.tishmack@gmail.com> | 2016-03-21 14:05:01 -0500 |
commit | db6dff75bd8905e7f7c7c679d5dc6680f65e5ae0 (patch) | |
tree | 6898ec1c8b91064d27911f1c930f849bf819bd92 /pkgs/tools/system/htop | |
parent | 74f04dc83c016386ef87c0b82b91fa42780192a0 (diff) | |
download | nixpkgs-db6dff75bd8905e7f7c7c679d5dc6680f65e5ae0.tar nixpkgs-db6dff75bd8905e7f7c7c679d5dc6680f65e5ae0.tar.gz nixpkgs-db6dff75bd8905e7f7c7c679d5dc6680f65e5ae0.tar.bz2 nixpkgs-db6dff75bd8905e7f7c7c679d5dc6680f65e5ae0.tar.lz nixpkgs-db6dff75bd8905e7f7c7c679d5dc6680f65e5ae0.tar.xz nixpkgs-db6dff75bd8905e7f7c7c679d5dc6680f65e5ae0.tar.zst nixpkgs-db6dff75bd8905e7f7c7c679d5dc6680f65e5ae0.zip |
htop: fix build on darwin
Diffstat (limited to 'pkgs/tools/system/htop')
-rw-r--r-- | pkgs/tools/system/htop/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/tools/system/htop/default.nix b/pkgs/tools/system/htop/default.nix index 46547aa45fd..9301107d2db 100644 --- a/pkgs/tools/system/htop/default.nix +++ b/pkgs/tools/system/htop/default.nix @@ -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"; |