git.iko.soy/typeable/nixpkgs
on master help sign in
sipp: 3.4-beta2 -> 3.5.1

fixes #23945

commit9bd988eb0f4c4aaa2c89d9898a846edb0dc9aa80 authorKranium Gikos Mendoza <kranium@gikos.net> dateFri 10 Mar 2017, 20:46 (10 years ago) parent99c7aa4
1 file changed+23−10
pkgs/development/tools/misc/sipp/default.nix+23−10
pkgs/development/tools/misc/sipp/default.nix+23−10
@@ -1,28 +1,41 @@
1−{stdenv, fetchurl, ncurses, libpcap }:
1+{stdenv, fetchFromGitHub, autoreconfHook, ncurses, libpcap }:
22
33stdenv.mkDerivation rec {
4−
5− version = "3.4-beta2";
4+ version = "3.5.1";
65
76 name = "sipp-${version}";
87
9− src = fetchurl {
10− url = "https://github.com/SIPp/sipp/archive/${version}.tar.gz";
11− sha256 = "0rr3slarh5dhpinif5aqji9c9krnpvl7z49w7qahvsww1niawwdv";
8+ src = fetchFromGitHub {
9+ owner = "SIPp";
10+ repo = "sipp";
11+ rev = "v${version}";
12+ sha256 = "179a1fvqyk3jpxbi28l1xfw22cw9vgvxrn19w5f38w74x0jwqg5k";
1213 };
1314
14− configurePhase = ''
15− export ac_cv_lib_curses_initscr=yes
16− export ac_cv_lib_pthread_pthread_mutex_init=yes
15+ patchPhase = ''
1716 sed -i "s@pcap/\(.*\).pcap@$out/share/pcap/\1.pcap@g" src/scenario.cpp
18− ./configure --prefix=$out --with-pcap
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
1919 '';
2020
21+ configureFlags = [
22+ "--with-pcap"
23+ ];
24+
2125 postInstall = ''
2226 mkdir -pv $out/share/pcap
2327 cp pcap/* $out/share/pcap
2428 '';
2529
2630 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+ };
2740}
2841