summary refs log tree commit diff
path: root/pkgs/tools/networking/jnettop/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/networking/jnettop/default.nix')
-rw-r--r--pkgs/tools/networking/jnettop/default.nix11
1 files 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 = {