From 2edd7103dab1e43a233d7fee890461887e5f6e1d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 15 Aug 2019 11:29:13 -0700 Subject: [PATCH] mtr: Only include libcap on Darwin Fixes #66688 --- pkgs/tools/networking/mtr/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/networking/mtr/default.nix b/pkgs/tools/networking/mtr/default.nix index 59242551f92..d00e3737237 100644 --- a/pkgs/tools/networking/mtr/default.nix +++ b/pkgs/tools/networking/mtr/default.nix @@ -30,7 +30,9 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ autoreconfHook pkgconfig ]; - buildInputs = [ libcap ncurses ] ++ stdenv.lib.optional withGtk gtk2; + buildInputs = [ ncurses ] + ++ stdenv.lib.optional withGtk gtk2 + ++ stdenv.lib.optional stdenv.isLinux libcap; enableParallelBuilding = true;