From f1f3d9f7f827efb13fc35bdabe29be16fc824e87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Sun, 14 Nov 2021 19:34:06 +0100 Subject: [PATCH] mtr: fix JSON output format, add libjansson MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently if you try to use `mtr` with `-j`/`--json` flag you get: ``` mtr: invalid option -- 'j' ``` In order to make this work it has to be built with `libjansson`: https://github.com/traviscross/mtr/issues/358 Signed-off-by: Jakub SokoĊ‚owski --- pkgs/tools/networking/mtr/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;