3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/dropwatch/default.nix

31 lines
904 B
Nix
Raw Normal View History

2018-11-01 23:11:07 +00:00
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
, 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;
meta = with stdenv.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 ];
};
}