2015-05-08 12:19:31 +01:00
|
|
|
{ stdenv, fetchzip, autoconf, automake, libtool, libpcap }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libcrafter";
|
2015-05-08 12:19:31 +01:00
|
|
|
version = "0.3";
|
2015-05-08 12:48:26 +01:00
|
|
|
|
2015-05-08 12:19:31 +01:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/pellegre/libcrafter/archive/version-${version}.zip";
|
|
|
|
sha256 = "04lpmshh4wb1dav03p6rnskpd1zmmvhv80xwn8v7l8faps5gvjp4";
|
|
|
|
};
|
2015-05-08 12:48:26 +01:00
|
|
|
|
2015-05-08 12:19:31 +01:00
|
|
|
preConfigure = "cd libcrafter";
|
|
|
|
|
|
|
|
configureScript = "./autogen.sh";
|
|
|
|
|
|
|
|
configureFlags = [ "--with-libpcap=yes" ];
|
|
|
|
|
|
|
|
buildInputs = [ autoconf automake libtool ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ libpcap ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/pellegre/libcrafter;
|
|
|
|
description = "High level C++ network packet sniffing and crafting library";
|
2015-05-08 12:26:31 +01:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2015-05-08 12:48:26 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.lethalman ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2015-05-08 12:19:31 +01:00
|
|
|
};
|
|
|
|
}
|