From c82410eeda78deb3afe898168700772d53361985 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Thu, 1 Jan 2015 15:49:20 -0800 Subject: java: Normalize to the default jre / jdk --- pkgs/development/tools/neoload/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pkgs/development/tools') diff --git a/pkgs/development/tools/neoload/default.nix b/pkgs/development/tools/neoload/default.nix index fc9446408de..9c781e6f757 100644 --- a/pkgs/development/tools/neoload/default.nix +++ b/pkgs/development/tools/neoload/default.nix @@ -14,8 +14,8 @@ else assert licenseAccepted; # the installer is very picky and demands 1.7.0.07 let dotInstall4j = path: writeTextFile { name = "dot-install4j"; text = '' - JRE_VERSION ${jre}${path} 1 7 0 7 - JRE_INFO ${jre}${path} 94 + JRE_VERSION ${path} 1 7 0 7 + JRE_INFO ${path} 94 ''; }; responseVarfile = writeTextFile { name = "response.varfile"; text = '' @@ -55,20 +55,20 @@ in stdenv.mkDerivation rec { sed -e 's/^if \[ -f jre.tar.gz/if false /' $src > installer chmod a+x installer - cp ${dotInstall4j ""} .install4j + cp ${dotInstall4j jre} .install4j chmod u+w .install4j sed -e "s|INSTALLDIR|$out|" ${responseVarfile} > response.varfile export HOME=`pwd` - export INSTALL4J_JAVA_HOME=${jre} + export INSTALL4J_JAVA_HOME=${jre.home} export FONTCONFIG_FILE=${fontsConf} bash -ic './installer -q -varfile response.varfile' sed -i 's/Xmx450m/Xmx900m/;s/Xss192k/Xss384k/' $out/lib/neoload/conf/agent.properties for i in $out/bin/*; do - wrapProgram $i --run 'cp ${dotInstall4j "/lib/openjdk/jre"} ~/.install4j' \ + wrapProgram $i --run 'cp ${dotInstall4j "${jre.home}/jre"} ~/.install4j' \ --run 'chmod u+w ~/.install4j' done -- cgit 1.4.1