at v206 31 lines 903 B view raw
1{ stdenv, fetchzip, autoreconfHook, libcrafter, libpcap, lua }: 2 3stdenv.mkDerivation rec { 4 name = "tracebox-${version}"; 5 version = "0.2"; 6 7 src = fetchzip { 8 url = "https://github.com/tracebox/tracebox/archive/v${version}.zip"; 9 sha256 = "0gxdapm6b5a41gymi1f0nr2kyz70vllnk10085yz3pq527gp9gns"; 10 }; 11 12 buildInputs = [ autoreconfHook libcrafter lua ]; 13 14 configureFlags = [ "--with-lua=yes" ]; 15 16 NIX_LDFLAGS = [ "${libpcap}/lib/libpcap.so" "${libcrafter}/lib/libcrafter.so" ]; 17 18 preAutoreconf = '' 19 substituteInPlace Makefile.am --replace "noinst" "" 20 sed '/noinst/d' -i configure.ac 21 sed '/libcrafter/d' -i src/tracebox/Makefile.am 22 ''; 23 24 meta = with stdenv.lib; { 25 homepage = http://www.tracebox.org/; 26 description = "A middlebox detection tool"; 27 license = stdenv.lib.licenses.gpl2; 28 maintainers = [ maintainers.lethalman ]; 29 platforms = platforms.linux; 30 }; 31}