54 lines
1009 B
Nix
54 lines
1009 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
stdenv,
|
||
|
|
fetchFromGitHub,
|
||
|
|
ncurses,
|
||
|
|
libpcap,
|
||
|
|
cmake,
|
||
|
|
openssl,
|
||
|
|
lksctp-tools,
|
||
|
|
}:
|
||
|
|
|
||
|
|
stdenv.mkDerivation (finalAttrs: {
|
||
|
|
pname = "sipp";
|
||
|
|
version = "3.7.3-unstable-2025-01-22";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "SIPp";
|
||
|
|
repo = "sipp";
|
||
|
|
rev = "464cf74c7321069b51c10f0c37f19ba16c2e7138";
|
||
|
|
hash = "sha256-mloeBKgDXmsa/WAUhlDsgNdhK8dpisGf3ti5UQQchJ8=";
|
||
|
|
leaveDotGit = true;
|
||
|
|
};
|
||
|
|
|
||
|
|
cmakeFlags = [
|
||
|
|
"-DUSE_PCAP=1"
|
||
|
|
"-DUSE_SSL=1"
|
||
|
|
"-DUSE_SCTP=${if stdenv.hostPlatform.isLinux then "1" else "0"}"
|
||
|
|
|
||
|
|
# file RPATH_CHANGE could not write new RPATH
|
||
|
|
"-DCMAKE_SKIP_BUILD_RPATH=ON"
|
||
|
|
];
|
||
|
|
|
||
|
|
enableParallelBuilding = true;
|
||
|
|
|
||
|
|
nativeBuildInputs = [
|
||
|
|
cmake
|
||
|
|
];
|
||
|
|
|
||
|
|
buildInputs = [
|
||
|
|
ncurses
|
||
|
|
libpcap
|
||
|
|
openssl
|
||
|
|
]
|
||
|
|
++ lib.optional (stdenv.hostPlatform.isLinux) lksctp-tools;
|
||
|
|
|
||
|
|
meta = {
|
||
|
|
homepage = "http://sipp.sf.net";
|
||
|
|
description = "SIPp testing tool";
|
||
|
|
mainProgram = "sipp";
|
||
|
|
license = lib.licenses.gpl3;
|
||
|
|
platforms = lib.platforms.unix;
|
||
|
|
};
|
||
|
|
})
|