java: Normalize to the default jre / jdk

This commit is contained in:
William A. Kennington III
2015-01-07 14:55:41 -08:00
parent bbc4262514
commit c82410eeda
20 changed files with 36 additions and 42 deletions
@@ -44,9 +44,7 @@ stdenv.mkDerivation rec {
# unpacking should have produced a dir named 'smartgit'
cp -a smartgit/* ${pkg_path}
mkdir -pv ${bin_path}
[ -d ${jre}/lib/openjdk ] \
&& jre=${jre}/lib/openjdk \
|| jre=${jre}
jre=${jre.home}
makeWrapper ${pkg_path}/bin/smartgit.sh ${bin_path}/smartgit \
--prefix PATH : ${runtime_paths} \
--prefix LD_LIBRARY_PATH : ${runtime_lib_paths} \