2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
|
2018-11-01 23:11:07 +00:00
|
|
|
, libnl, readline, libbfd, ncurses, zlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dropwatch";
|
2019-10-31 19:22:10 +00:00
|
|
|
version = "1.5.1";
|
2018-11-01 23:11:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nhorman";
|
|
|
|
repo = pname;
|
2019-10-31 19:22:10 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1qmax0l7z1qik42c949fnvjh5r6awk4gpgzdsny8iwnmwzjyp8b8";
|
2018-11-01 23:11:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ libbfd libnl ncurses readline zlib ];
|
|
|
|
|
|
|
|
# To avoid running into https://sourceware.org/bugzilla/show_bug.cgi?id=14243 we need to define:
|
2019-10-30 01:29:30 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-DPACKAGE=${pname} -DPACKAGE_VERSION=${version}";
|
2018-11-01 23:11:07 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-10-31 19:22:10 +00:00
|
|
|
description = "Linux kernel dropped packet monitor";
|
|
|
|
homepage = "https://github.com/nhorman/dropwatch";
|
2018-11-01 23:11:07 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.c0bw3b ];
|
|
|
|
};
|
|
|
|
}
|