fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{stdenv, fetchFromGitHub, autoreconfHook, ncurses, libpcap }:
2
3stdenv.mkDerivation rec {
4 version = "3.5.1";
5
6 name = "sipp-${version}";
7
8 src = fetchFromGitHub {
9 owner = "SIPp";
10 repo = "sipp";
11 rev = "v${version}";
12 sha256 = "179a1fvqyk3jpxbi28l1xfw22cw9vgvxrn19w5f38w74x0jwqg5k";
13 };
14
15 patchPhase = ''
16 sed -i "s@pcap/\(.*\).pcap@$out/share/pcap/\1.pcap@g" src/scenario.cpp
17 sed -i -e "s|AC_CHECK_LIB(curses|AC_CHECK_LIB(ncurses|" configure.ac
18 echo "#define SIPP_VERSION \"v${version}\"" > include/version.h
19 '';
20
21 configureFlags = [
22 "--with-pcap"
23 ];
24
25 postInstall = ''
26 mkdir -pv $out/share/pcap
27 cp pcap/* $out/share/pcap
28 '';
29
30 buildInputs = [ncurses libpcap];
31
32 nativeBuildInputs = [ autoreconfHook ];
33
34 meta = with stdenv.lib; {
35 homepage = http://sipp.sf.net;
36 description = "The SIPp testing tool";
37 license = licenses.gpl3;
38 platforms = platforms.unix;
39 };
40}
41