2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchzip, autoconf, automake, libtool, libpcap }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libcrafter";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/pellegre/libcrafter/archive/version-${version}.zip";
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "1d2vgxawdwk2zg3scxclxdby1rhghmivly8azdjja89kw7gls9xl";
|
2020-04-24 23:36:52 +00: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";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = [ lib.maintainers.lethalman ];
|
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|