2022-03-30 09:31:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, ncurses, libpcap, cmake, openssl, git, lksctp-tools }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "3.6.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "sipp";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/SIPp/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-alYOg6/5gvMx3byt+zvVMMWJbNW3V91utoITPMhg7LE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2022-03-30 09:31:56 +00:00
|
|
|
cp version.h src/version.h
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DUSE_GSL=1"
|
|
|
|
"-DUSE_PCAP=1"
|
|
|
|
"-DUSE_SSL=1"
|
|
|
|
"-DUSE_SCTP=${if stdenv.isLinux then "1" else "0"}"
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
# file RPATH_CHANGE could not write new RPATH
|
|
|
|
"-DCMAKE_SKIP_BUILD_RPATH=ON"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2022-03-30 09:31:56 +00:00
|
|
|
enableParallelBuilding = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
nativeBuildInputs = [ cmake git ];
|
|
|
|
buildInputs = [ ncurses libpcap openssl ]
|
|
|
|
++ lib.optional (stdenv.isLinux) lksctp-tools;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://sipp.sf.net";
|
|
|
|
description = "The SIPp testing tool";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "sipp";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|