mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
openjdk: Add the 'jre' output.
Note that this is almost completely useless for now, when openjdk is built a separate store path containing only the jre will be built but it will not be added to the environment nor as a gc root. If you want to install just the jre, for now build openjre (which uses the jreOnly parameter). Once multiple outputs are more feature-complete, this should hopefully be useful and remove the need for the jreOnly parameter svn path=/nixpkgs/trunk/; revision=28481
This commit is contained in:
parent
fbb50e0f6d
commit
e5a6f2702b
1 changed files with 6 additions and 1 deletions
|
@ -50,6 +50,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "17n0i5cgvfsd6ric70h3n7hr8aqnzd216gaq3603wrxlvggzxbp6";
|
||||
};
|
||||
|
||||
outputs = [ "out" ] ++ stdenv.lib.optionals (! jreOnly) [ "jre" ];
|
||||
|
||||
buildInputs = [
|
||||
unzip
|
||||
procps
|
||||
|
@ -114,7 +116,10 @@ stdenv.mkDerivation rec {
|
|||
installPhase = ''
|
||||
ensureDir $out
|
||||
cp -av build/*/j2${if jreOnly then "re" else "sdk"}-image/* $out
|
||||
'';
|
||||
'' + (if jreOnly then "" else ''
|
||||
ensureDir $jre
|
||||
cp -av build/*/j2re-image/* $jre
|
||||
'');
|
||||
|
||||
meta = {
|
||||
homepage = http://openjdk.java.net/;
|
||||
|
|
Loading…
Reference in a new issue