aboutsummaryrefslogtreecommitdiff
path: root/doc/languages-frameworks/java.xml
diff options
context:
space:
mode:
authorRaphael Borun Das Gupta <git@raphael.dasgupta.ch>2019-07-16 10:37:04 +0200
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2019-07-20 11:37:49 +0200
commitb6a25f2de47941b8900354c3dd0b0cfea7781db8 (patch)
tree98b237c4b230355363ef954b58fdc5c501c1f365 /doc/languages-frameworks/java.xml
parent42fa330b04b856fb8a562d758dfa4f8f0b5695dd (diff)
doc: put Java software's build-time dependencies into nativeBuildInputs
instead of into buildInputs
Diffstat (limited to '')
-rw-r--r--doc/languages-frameworks/java.xml9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/languages-frameworks/java.xml b/doc/languages-frameworks/java.xml
index 287f63e685c..68a1a097984 100644
--- a/doc/languages-frameworks/java.xml
+++ b/doc/languages-frameworks/java.xml
@@ -10,7 +10,7 @@ stdenv.mkDerivation {
name = "...";
src = fetchurl { ... };
- buildInputs = [ jdk ant ];
+ nativeBuildInputs = [ jdk ant ];
buildPhase = "ant";
}
@@ -30,7 +30,8 @@ stdenv.mkDerivation {
<filename>foo.jar</filename> in its <filename>share/java</filename>
directory, and another package declares the attribute
<programlisting>
-buildInputs = [ jdk libfoo ];
+buildInputs = [ libfoo ];
+nativeBuildInputs = [ jdk ];
</programlisting>
then <envar>CLASSPATH</envar> will be set to
<filename>/nix/store/...-libfoo/share/java/foo.jar</filename>.
@@ -46,7 +47,7 @@ buildInputs = [ jdk libfoo ];
script to run it using the OpenJRE. You can use
<literal>makeWrapper</literal> for this:
<programlisting>
-buildInputs = [ makeWrapper ];
+nativeBuildInputs = [ makeWrapper ];
installPhase =
''
@@ -76,7 +77,7 @@ installPhase =
It is possible to use a different Java compiler than <command>javac</command>
from the OpenJDK. For instance, to use the GNU Java Compiler:
<programlisting>
-buildInputs = [ gcj ant ];
+nativeBuildInputs = [ gcj ant ];
</programlisting>
Here, Ant will automatically use <command>gij</command> (the GNU Java
Runtime) instead of the OpenJRE.