1 { lib, stdenv, fetchurl, ncurses, libpcap, cmake, openssl, git, lksctp-tools }:
3 stdenv.mkDerivation rec {
8 url = "https://github.com/SIPp/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz";
9 sha256 = "sha256-alYOg6/5gvMx3byt+zvVMMWJbNW3V91utoITPMhg7LE=";
13 cp version.h src/version.h
20 "-DUSE_SCTP=${if stdenv.isLinux then "1" else "0"}"
22 # file RPATH_CHANGE could not write new RPATH
23 "-DCMAKE_SKIP_BUILD_RPATH=ON"
25 enableParallelBuilding = true;
27 nativeBuildInputs = [ cmake git ];
28 buildInputs = [ ncurses libpcap openssl ]
29 ++ lib.optional (stdenv.isLinux) lksctp-tools;
32 homepage = "http://sipp.sf.net";
33 description = "The SIPp testing tool";
35 license = licenses.gpl3;
36 platforms = platforms.unix;