nixpkgs-suyu/pkgs/os-specific/linux/dropwatch/default.nix

31 lines
904 B
Nix
Raw Normal View History

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