2022-01-07 04:07:37 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, 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
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pellegre";
|
|
|
|
repo = "libcrafter";
|
|
|
|
rev = "version-${version}";
|
|
|
|
sha256 = "sha256-tCdN3+EzISVl+wp5umOFD+bgV+uUdabH+2LyxlV/W7Q=";
|
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;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = [ ];
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|