lol
at v206 28 lines 774 B view raw
1{ stdenv, fetchzip, autoconf, automake, libtool, libpcap }: 2 3stdenv.mkDerivation rec { 4 name = "libcrafter-${version}"; 5 version = "0.3"; 6 7 src = fetchzip { 8 url = "https://github.com/pellegre/libcrafter/archive/version-${version}.zip"; 9 sha256 = "04lpmshh4wb1dav03p6rnskpd1zmmvhv80xwn8v7l8faps5gvjp4"; 10 }; 11 12 preConfigure = "cd libcrafter"; 13 14 configureScript = "./autogen.sh"; 15 16 configureFlags = [ "--with-libpcap=yes" ]; 17 18 buildInputs = [ autoconf automake libtool ]; 19 20 propagatedBuildInputs = [ libpcap ]; 21 22 meta = { 23 homepage = https://github.com/pellegre/libcrafter; 24 description = "High level C++ network packet sniffing and crafting library"; 25 license = stdenv.lib.licenses.bsd3; 26 maintainers = [ stdenv.lib.maintainers.lethalman ]; 27 }; 28}