2021-11-26 21:41:30 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, makeWrapper
|
|
|
|
, erlang
|
|
|
|
, python3
|
|
|
|
, python3Packages
|
|
|
|
, perlPackages
|
|
|
|
, gnuplot
|
|
|
|
}:
|
2018-09-12 18:54:21 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "tsung";
|
2023-03-07 20:37:48 +00:00
|
|
|
version = "1.8.0";
|
2021-11-26 21:41:30 +00:00
|
|
|
|
2018-09-12 18:54:21 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://tsung.erlang-projects.org/dist/tsung-${version}.tar.gz";
|
2023-03-07 20:44:35 +00:00
|
|
|
hash = "sha256-kehkMCYBfj0AiKZxD7EcT2F0d+gm6+TF/lhqpjFH/JI=";
|
2018-09-12 18:54:21 +00:00
|
|
|
};
|
|
|
|
|
2021-11-26 21:41:30 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
2018-09-12 18:54:21 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
erlang
|
|
|
|
gnuplot
|
2018-12-15 03:50:31 +00:00
|
|
|
perlPackages.perl
|
2018-09-12 18:54:21 +00:00
|
|
|
perlPackages.TemplateToolkit
|
2021-11-26 21:41:30 +00:00
|
|
|
python3
|
|
|
|
python3Packages.matplotlib
|
2018-09-12 18:54:21 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
# Make tsung_stats.pl accessible
|
|
|
|
# Leaving .pl at the end since all of tsung documentation is refering to it
|
|
|
|
# as tsung_stats.pl
|
|
|
|
ln -s $out/lib/tsung/bin/tsung_stats.pl $out/bin/tsung_stats.pl
|
|
|
|
|
|
|
|
# Add Template Toolkit and gnuplot to tsung_stats.pl
|
|
|
|
wrapProgram $out/bin/tsung_stats.pl \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ gnuplot ]} \
|
2018-12-15 03:50:31 +00:00
|
|
|
--set PERL5LIB "${perlPackages.makePerlPath [ perlPackages.TemplateToolkit ]}"
|
2018-09-12 18:54:21 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-09-12 18:54:21 +00:00
|
|
|
homepage = "http://tsung.erlang-projects.org/";
|
2023-03-07 20:44:35 +00:00
|
|
|
changelog = "https://github.com/processone/tsung/blob/v${version}/CHANGELOG.md";
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "A high-performance benchmark framework for various protocols including HTTP, XMPP, LDAP, etc";
|
2018-09-12 18:54:21 +00:00
|
|
|
longDescription = ''
|
|
|
|
Tsung is a distributed load testing tool. It is protocol-independent and
|
|
|
|
can currently be used to stress HTTP, WebDAV, SOAP, PostgreSQL, MySQL,
|
|
|
|
AMQP, MQTT, LDAP and Jabber/XMPP servers.
|
|
|
|
'';
|
2021-11-26 21:41:30 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ uskudnik ];
|
2018-09-12 18:54:21 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|