depot/third_party/nixpkgs/pkgs/os-specific/linux/dropwatch/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

30 lines
904 B
Nix

{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
, libnl, readline, libbfd, ncurses, zlib }:
stdenv.mkDerivation rec {
pname = "dropwatch";
version = "1.5.1";
src = fetchFromGitHub {
owner = "nhorman";
repo = pname;
rev = "v${version}";
sha256 = "1qmax0l7z1qik42c949fnvjh5r6awk4gpgzdsny8iwnmwzjyp8b8";
};
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:
NIX_CFLAGS_COMPILE = "-DPACKAGE=${pname} -DPACKAGE_VERSION=${version}";
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Linux kernel dropped packet monitor";
homepage = "https://github.com/nhorman/dropwatch";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.c0bw3b ];
};
}