From 07f27eddae754d883f876425854e39d7e656fa1e Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Mon, 10 Jul 2017 13:02:07 -0500 Subject: [PATCH] jnettop: add patch for 64bit counters (#27283) Add patch (from Debian) to use 64bit counters for transfer totals. Otherwise counters overflow at 4GB. --- pkgs/tools/networking/jnettop/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/jnettop/default.nix b/pkgs/tools/networking/jnettop/default.nix index a09da684c98..ec2f34f5601 100644 --- a/pkgs/tools/networking/jnettop/default.nix +++ b/pkgs/tools/networking/jnettop/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, stdenv, autoconf, libpcap, ncurses, pkgconfig, glib }: +{ fetchurl, fetchpatch, stdenv, autoconf, libpcap, ncurses, pkgconfig, glib }: stdenv.mkDerivation rec { name = "jnettop-0.13.0"; @@ -10,7 +10,14 @@ stdenv.mkDerivation rec { buildInputs = [ autoconf libpcap ncurses pkgconfig glib ]; - patches = [ ./no-dns-resolution.patch ]; + patches = [ + ./no-dns-resolution.patch + (fetchpatch { + url = "https://sources.debian.net/data/main/j/jnettop/0.13.0-1/debian/patches/0001-Use-64-bit-integers-for-byte-totals-support-bigger-u.patch"; + sha256 = "1b0alc12sj8pzcb66f8xslbqlbsvq28kz34v6jfhbb1q25hyr7jg"; + }) + ]; + preConfigure = '' autoconf ''; meta = {