sipp: 3.6.1 -> 3.7.3-unstable-2025-01-22

This commit is contained in:
nayeko 2025-01-30 22:10:39 +08:00
parent fc04e24292
commit 72dd50b0ee

View File

@ -1,30 +1,27 @@
{
lib,
stdenv,
fetchurl,
fetchFromGitHub,
ncurses,
libpcap,
cmake,
openssl,
git,
lksctp-tools,
}:
stdenv.mkDerivation rec {
version = "3.6.1";
stdenv.mkDerivation (finalAttrs: {
pname = "sipp";
version = "3.7.3-unstable-2025-01-22";
src = fetchurl {
url = "https://github.com/SIPp/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz";
sha256 = "sha256-alYOg6/5gvMx3byt+zvVMMWJbNW3V91utoITPMhg7LE=";
src = fetchFromGitHub {
owner = "SIPp";
repo = "sipp";
rev = "464cf74c7321069b51c10f0c37f19ba16c2e7138";
hash = "sha256-mloeBKgDXmsa/WAUhlDsgNdhK8dpisGf3ti5UQQchJ8=";
leaveDotGit = true;
};
postPatch = ''
cp version.h src/version.h
'';
cmakeFlags = [
"-DUSE_GSL=1"
"-DUSE_PCAP=1"
"-DUSE_SSL=1"
"-DUSE_SCTP=${if stdenv.hostPlatform.isLinux then "1" else "0"}"
@ -32,23 +29,24 @@ stdenv.mkDerivation rec {
# file RPATH_CHANGE could not write new RPATH
"-DCMAKE_SKIP_BUILD_RPATH=ON"
];
enableParallelBuilding = true;
nativeBuildInputs = [
cmake
git
];
buildInputs = [
ncurses
libpcap
openssl
] ++ lib.optional (stdenv.hostPlatform.isLinux) lksctp-tools;
meta = with lib; {
meta = {
homepage = "http://sipp.sf.net";
description = "SIPp testing tool";
mainProgram = "sipp";
license = licenses.gpl3;
platforms = platforms.unix;
license = lib.licenses.gpl3;
platforms = lib.platforms.unix;
};
}
})