Merge pull request #33081 from apeyroux/up-jmeter

jmeter: 2.11 -> 3.3 and fix java command not found
This commit is contained in:
Joachim F 2018-01-06 14:59:22 +00:00 committed by GitHub
commit 7342871ea0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +1,17 @@
{ fetchurl, stdenv, ant }:
{ fetchurl, stdenv, jre }:
stdenv.mkDerivation rec {
name = "jmeter-2.11";
name = "jmeter-3.3";
src = fetchurl {
url = "http://archive.apache.org/dist/jmeter/binaries/apache-${name}.tgz";
sha256 = "1fr3sw06qncb6yygcf2lbnkxma4v1dbigpf39ajrm0isxbpyv944";
sha256 = "190k6yrh5casadphkv4azp4nvf4wf2q85mrfysw67r9d96nb9kk5";
};
buildInputs = [ jre ];
installPhase = ''
substituteInPlace ./bin/jmeter.sh --replace "java $ARGS" "${jre}/bin/java $ARGS"
substituteInPlace ./bin/jmeter --replace "java $ARGS" "${jre}/bin/java $ARGS"
mkdir $out
cp ./* $out/ -R
'';