jnettop: add patch for 64bit counters (#27283)
Add patch (from Debian) to use 64bit counters for transfer totals. Otherwise counters overflow at 4GB.
This commit is contained in:
parent
614fbf1111
commit
07f27eddae
@ -1,4 +1,4 @@
|
|||||||
{ fetchurl, stdenv, autoconf, libpcap, ncurses, pkgconfig, glib }:
|
{ fetchurl, fetchpatch, stdenv, autoconf, libpcap, ncurses, pkgconfig, glib }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "jnettop-0.13.0";
|
name = "jnettop-0.13.0";
|
||||||
@ -10,7 +10,14 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ autoconf libpcap ncurses pkgconfig glib ];
|
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 '';
|
preConfigure = '' autoconf '';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
Reference in New Issue
Block a user