From d0e1277dfda427990c00f3db1ada4cc5767b5754 Mon Sep 17 00:00:00 2001 From: Raymond Date: Sat, 16 Nov 2019 01:08:28 +0300 Subject: [PATCH] mtr: patch for "Error decoding localhost address" --- pkgs/tools/networking/mtr/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/networking/mtr/default.nix b/pkgs/tools/networking/mtr/default.nix index 217f3b7d7cc..18850fab330 100644 --- a/pkgs/tools/networking/mtr/default.nix +++ b/pkgs/tools/networking/mtr/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchFromGitHub, autoreconfHook, pkgconfig +{ stdenv, lib, fetchFromGitHub, fetchpatch, autoreconfHook, pkgconfig , libcap, ncurses , withGtk ? false, gtk2 ? null }: @@ -14,6 +14,14 @@ stdenv.mkDerivation rec { rev = "v${version}"; sha256 = "0n0zr9k61w7a9psnzgp7xnc7ll1ic2xzcvqsbbbyndg3v9rff6bw"; }; + + patches = [ + # https://github.com/traviscross/mtr/pull/315 + (fetchpatch { + url = https://github.com/traviscross/mtr/pull/315.patch?full_index=1; + sha256 = "18qcsj9058snc2qhq6v6gdbqhz021gi5fgw9h7vfczv45gf0qasa"; + }) + ]; # we need this before autoreconfHook does its thing postPatch = ''