mtr: Only include libcap on Darwin

Fixes #66688
This commit is contained in:
John Wiegley 2019-08-15 11:29:13 -07:00
parent 3553c9948c
commit 2edd7103da
No known key found for this signature in database
GPG Key ID: C144D8F4F19FE630

View File

@ -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;