From 72dd50b0ee7a993be91dc428ef8e1de7f56ef5a9 Mon Sep 17 00:00:00 2001 From: nayeko Date: Thu, 30 Jan 2025 22:10:39 +0800 Subject: [PATCH] sipp: 3.6.1 -> 3.7.3-unstable-2025-01-22 --- pkgs/by-name/si/sipp/package.nix | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/pkgs/by-name/si/sipp/package.nix b/pkgs/by-name/si/sipp/package.nix index 7ad501f87bdb..3f715baabcee 100644 --- a/pkgs/by-name/si/sipp/package.nix +++ b/pkgs/by-name/si/sipp/package.nix @@ -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; }; -} +})