2022-01-04 15:38:41 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, libpcap }:
|
2015-05-08 11:19:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libcrafter";
|
2020-07-16 06:47:54 +00:00
|
|
|
version = "1.0";
|
2015-05-08 11:48:26 +00:00
|
|
|
|
2022-01-04 15:38:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pellegre";
|
|
|
|
repo = "libcrafter";
|
|
|
|
rev = "version-${version}";
|
|
|
|
sha256 = "sha256-tCdN3+EzISVl+wp5umOFD+bgV+uUdabH+2LyxlV/W7Q=";
|
2015-05-08 11:19:31 +00:00
|
|
|
};
|
2015-05-08 11:48:26 +00:00
|
|
|
|
2015-05-08 11:19:31 +00:00
|
|
|
preConfigure = "cd libcrafter";
|
|
|
|
|
|
|
|
configureScript = "./autogen.sh";
|
|
|
|
|
|
|
|
configureFlags = [ "--with-libpcap=yes" ];
|
|
|
|
|
|
|
|
buildInputs = [ autoconf automake libtool ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ libpcap ];
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/pellegre/libcrafter";
|
2015-05-08 11:19:31 +00: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 13:35:21 +00:00
|
|
|
maintainers = [ ];
|
2021-01-21 17:00:13 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2015-05-08 11:19:31 +00:00
|
|
|
};
|
|
|
|
}
|