mtr: Only include libcap on Darwin
Fixes #66688
commit2edd7103dab1e43a233d7fee890461887e5f6e1d
authorJohn Wiegley <johnw@newartisans.com>
dateThu 15 Aug 2019, 11:29 (7 years ago)
parent3553c99
pkgs/tools/networking/mtr/default.nix+3−1
@@ -30,7 +30,9 @@ stdenv.mkDerivation rec {
3030
3131 nativeBuildInputs = [ autoreconfHook pkgconfig ];
3232
33− buildInputs = [ libcap ncurses ] ++ stdenv.lib.optional withGtk gtk2;
33+ buildInputs = [ ncurses ]
34+ ++ stdenv.lib.optional withGtk gtk2
35+ ++ stdenv.lib.optional stdenv.isLinux libcap;
3436
3537 enableParallelBuilding = true;
3638