mtr: fix JSON output format, add libjansson

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 <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-11-14 19:34:06 +01:00
parent 7d210bcb4c
commit f1f3d9f7f8
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020

View File

@ -1,5 +1,5 @@
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pkg-config { stdenv, lib, fetchFromGitHub, autoreconfHook, pkg-config
, libcap, ncurses , libcap, ncurses, jansson
, withGtk ? false, gtk3 }: , withGtk ? false, gtk3 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook pkg-config ]; nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ ncurses ] buildInputs = [ ncurses jansson ]
++ lib.optional withGtk gtk3 ++ lib.optional withGtk gtk3
++ lib.optional stdenv.isLinux libcap; ++ lib.optional stdenv.isLinux libcap;