R: Enable java support on all platforms
This commit is contained in:
parent
0eb33b0485
commit
4e5aeca90b
1 changed files with 3 additions and 5 deletions
|
@ -7,7 +7,6 @@
|
|||
# R as of writing does not support outputting both .so and .a files; it outputs:
|
||||
# --enable-R-static-lib conflicts with --enable-R-shlib and will be ignored
|
||||
, static ? false
|
||||
, javaSupport ? (!stdenv.hostPlatform.isAarch32 && !stdenv.hostPlatform.isAarch64)
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -23,9 +22,8 @@ stdenv.mkDerivation rec {
|
|||
buildInputs = [
|
||||
bzip2 gfortran libX11 libXmu libXt libXt libjpeg libpng libtiff ncurses
|
||||
pango pcre perl readline texLive xz zlib less texinfo graphviz icu
|
||||
pkgconfig bison imake which openblas curl tcl tk
|
||||
] ++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa Foundation libobjc libcxx ]
|
||||
++ stdenv.lib.optional javaSupport jdk;
|
||||
pkgconfig bison imake which openblas curl tcl tk jdk
|
||||
] ++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa Foundation libobjc libcxx ];
|
||||
|
||||
patches = [
|
||||
./no-usr-local-search-paths.patch
|
||||
|
@ -57,7 +55,7 @@ stdenv.mkDerivation rec {
|
|||
CC=$(type -p cc)
|
||||
CXX=$(type -p c++)
|
||||
FC="${gfortran}/bin/gfortran" F77="${gfortran}/bin/gfortran"
|
||||
${stdenv.lib.optionalString javaSupport "JAVA_HOME=\"${jdk}\""}
|
||||
JAVA_HOME="${jdk}"
|
||||
RANLIB=$(type -p ranlib)
|
||||
R_SHELL="${stdenv.shell}"
|
||||
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
|
|
Loading…
Reference in a new issue