1 { lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, libpcap }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
10 rev = "version-${version}";
11 sha256 = "sha256-tCdN3+EzISVl+wp5umOFD+bgV+uUdabH+2LyxlV/W7Q=";
14 preConfigure = "cd libcrafter";
16 configureScript = "./autogen.sh";
18 configureFlags = [ "--with-libpcap=yes" ];
20 nativeBuildInputs = [ autoconf automake ];
21 buildInputs = [ libtool ];
23 propagatedBuildInputs = [ libpcap ];
26 homepage = "https://github.com/pellegre/libcrafter";
27 description = "High level C++ network packet sniffing and crafting library";
28 license = lib.licenses.bsd3;
30 platforms = lib.platforms.unix;