11 stdenv.mkDerivation rec {
15 src = fetchFromGitHub {
18 rev = "version-${version}";
19 sha256 = "sha256-tCdN3+EzISVl+wp5umOFD+bgV+uUdabH+2LyxlV/W7Q=";
22 preConfigure = "cd libcrafter";
24 configureScript = "./autogen.sh";
26 configureFlags = [ "--with-libpcap=yes" ];
32 buildInputs = [ libtool ];
34 propagatedBuildInputs = [ libpcap ];
37 homepage = "https://github.com/pellegre/libcrafter";
38 description = "High level C++ network packet sniffing and crafting library";
39 license = lib.licenses.bsd3;
41 platforms = lib.platforms.unix;