openjdk: Add a fix for versions of nix not yet supporting multiple outputs

svn path=/nixpkgs/trunk/; revision=28493
This commit is contained in:
Shea Levy 2011-08-11 13:27:43 +00:00
parent dbce2ffd0f
commit bff57396f5

View File

@ -117,6 +117,9 @@ stdenv.mkDerivation rec {
ensureDir $out
cp -av build/*/j2${if jreOnly then "re" else "sdk"}-image/* $out
'' + (if jreOnly then "" else ''
if [ -z $jre ]; then
exit 0
fi
ensureDir $jre
cp -av build/*/j2re-image/* $jre
'');