mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
71 lines
2.0 KiB
Nix
71 lines
2.0 KiB
Nix
{
|
|
fetchurl,
|
|
lib,
|
|
stdenv,
|
|
jre,
|
|
makeWrapper,
|
|
coreutils,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "jmeter";
|
|
version = "5.6.3";
|
|
src = fetchurl {
|
|
url = "mirror://apache/jmeter/binaries/apache-${pname}-${version}.tgz";
|
|
sha256 = "sha256-9o78F/4GD2mMSKar4lmakzknSGvaKSTb4Ux0iVMY3d4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
jre
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
|
|
rm bin/*.bat bin/*.cmd
|
|
|
|
cp -R * $out/
|
|
|
|
substituteInPlace $out/bin/create-rmi-keystore.sh --replace \
|
|
"keytool -genkey" \
|
|
"${jre}/lib/openjdk/jre/bin/keytool -genkey"
|
|
|
|
# Prefix some scripts with jmeter to avoid clobbering the namespace
|
|
for i in heapdump.sh mirror-server mirror-server.sh shutdown.sh stoptest.sh create-rmi-keystore.sh; do
|
|
mv $out/bin/$i $out/bin/jmeter-$i
|
|
wrapProgram $out/bin/jmeter-$i \
|
|
--prefix PATH : "${jre}/bin"
|
|
done
|
|
|
|
wrapProgram $out/bin/jmeter --set JAVA_HOME "${jre}"
|
|
wrapProgram $out/bin/jmeter.sh --set JAVA_HOME "${jre}"
|
|
'';
|
|
|
|
doInstallCheck = false; # NoClassDefFoundError: org/apache/logging/log4j/Level for tests
|
|
|
|
nativeCheckInputs = [ coreutils ];
|
|
|
|
installCheckPhase = ''
|
|
$out/bin/jmeter --version 2>&1 | grep -q "${version}"
|
|
$out/bin/jmeter-heapdump.sh > /dev/null
|
|
$out/bin/jmeter-shutdown.sh > /dev/null
|
|
$out/bin/jmeter-stoptest.sh > /dev/null
|
|
timeout --kill=1s 1s $out/bin/jmeter-mirror-server.sh || test "$?" = "124"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "100% pure Java desktop application designed to load test functional behavior and measure performance";
|
|
longDescription = ''
|
|
The Apache JMeter desktop application is open source software, a 100%
|
|
pure Java application designed to load test functional behavior and
|
|
measure performance. It was originally designed for testing Web
|
|
Applications but has since expanded to other test functions.
|
|
'';
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.bryanasdev000 ];
|
|
priority = 1;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|