mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
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:
parent
7d210bcb4c
commit
f1f3d9f7f8
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user