Merge pull request #191388 from ck3d/tracebox

tracebox: 0.2 -> 0.4.4

authored by Jonas Heinrich and committed by GitHub 67d138a0 5026166f

+25 -14
+25 -14
pkgs/tools/networking/tracebox/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, autoreconfHook, libcrafter, libpcap, lua }: 2 - 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , autoreconfHook 5 + , libpcap 6 + , lua5_1 7 + , json_c 8 + }: 3 9 stdenv.mkDerivation rec { 4 10 pname = "tracebox"; 5 - version = "0.2"; 11 + version = "0.4.4"; 6 12 7 13 src = fetchFromGitHub { 8 14 owner = "tracebox"; 9 15 repo = "tracebox"; 10 16 rev = "v${version}"; 11 - hash = "sha256-2r503xEF3/F9QQCEaSnd4Hw/RbbAhVj9C0SVZepVrT8="; 17 + hash = "sha256-1KBJ4uXa1XpzEw23IjndZg+aGJXk3PVw8LYKAvxbxCA="; 18 + fetchSubmodules = true; 12 19 }; 13 20 14 21 nativeBuildInputs = [ autoreconfHook ]; 15 - buildInputs = [ libcrafter lua ]; 22 + buildInputs = [ 23 + libpcap 24 + lua5_1 25 + json_c 26 + ]; 16 27 17 - configureFlags = [ "--with-lua=yes" ]; 28 + configureFlags = [ 29 + "--with-lua=yes" 30 + "--with-libpcap=yes" 31 + ]; 18 32 19 - NIX_LDFLAGS = "${libpcap}/lib/libpcap.so ${libcrafter}/lib/libcrafter.so"; 33 + PCAPLIB="-lpcap"; 34 + LUA_LIB="-llua"; 20 35 21 - preAutoreconf = '' 22 - substituteInPlace Makefile.am --replace "noinst" "" 23 - sed '/noinst/d' -i configure.ac 24 - sed '/libcrafter/d' -i src/tracebox/Makefile.am 25 - ''; 36 + enableParallelBuilding = true; 26 37 27 38 meta = with lib; { 28 39 homepage = "http://www.tracebox.org/"; 29 40 description = "A middlebox detection tool"; 30 - license = lib.licenses.gpl2; 31 - maintainers = [ ]; 41 + license = licenses.gpl2; 42 + maintainers = with maintainers; [ ck3d ]; 32 43 platforms = platforms.linux; 33 44 }; 34 45 }