2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchzip, autoconf, automake, libtool, libpcap }:
|
2015-05-08 12:19:31 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libcrafter";
|
2020-07-16 07:47:54 +01:00
|
|
|
version = "1.0";
|
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";
|
2020-07-16 07:47:54 +01:00
|
|
|
sha256 = "1d2vgxawdwk2zg3scxclxdby1rhghmivly8azdjja89kw7gls9xl";
|
2015-05-08 12:19:31 +01:00
|
|
|
};
|
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 = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pellegre/libcrafter";
|
2015-05-08 12:19:31 +01:00
|
|
|
description = "High level C++ network packet sniffing and crafting library";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2021-05-07 14:35:21 +01:00
|
|
|
maintainers = [ ];
|
2021-01-21 17:00:13 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2015-05-08 12:19:31 +01:00
|
|
|
};
|
|
|
|
}
|