diff --git a/pkgs/tools/networking/mtr/default.nix b/pkgs/tools/networking/mtr/default.nix index 1257c167e768..f9209158f6dd 100644 --- a/pkgs/tools/networking/mtr/default.nix +++ b/pkgs/tools/networking/mtr/default.nix @@ -1,5 +1,5 @@ { stdenv, lib, fetchFromGitHub, autoreconfHook, pkg-config -, libcap, ncurses +, libcap, ncurses, jansson , withGtk ? false, gtk3 }: stdenv.mkDerivation rec { @@ -28,7 +28,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ autoreconfHook pkg-config ]; - buildInputs = [ ncurses ] + buildInputs = [ ncurses jansson ] ++ lib.optional withGtk gtk3 ++ lib.optional stdenv.isLinux libcap;