R: Remove jdk dependency on aarch32/64
Add javaSupport as an argument for R. Default to false on arm as there is no free jdk on arm.
This commit is contained in:
parent
eb6337b3e3
commit
b51018ed2e
@ -4,6 +4,7 @@
|
|||||||
, curl, Cocoa, Foundation, libobjc, libcxx, tzdata
|
, curl, Cocoa, Foundation, libobjc, libcxx, tzdata
|
||||||
, withRecommendedPackages ? true
|
, withRecommendedPackages ? true
|
||||||
, enableStrictBarrier ? false
|
, enableStrictBarrier ? false
|
||||||
|
, javaSupport ? (!stdenv.hostPlatform.isAarch32 && !stdenv.hostPlatform.isAarch64)
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -17,9 +18,10 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [
|
buildInputs = [
|
||||||
bzip2 gfortran libX11 libXmu libXt libXt libjpeg libpng libtiff ncurses
|
bzip2 gfortran libX11 libXmu libXt libXt libjpeg libpng libtiff ncurses
|
||||||
pango pcre perl readline texLive xz zlib less texinfo graphviz icu
|
pango pcre perl readline texLive xz zlib less texinfo graphviz icu
|
||||||
pkgconfig bison imake which jdk openblas curl
|
pkgconfig bison imake which openblas curl
|
||||||
] ++ stdenv.lib.optionals (!stdenv.isDarwin) [ tcl tk ]
|
] ++ stdenv.lib.optionals (!stdenv.isDarwin) [ tcl tk ]
|
||||||
++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa Foundation libobjc libcxx ];
|
++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa Foundation libobjc libcxx ]
|
||||||
|
++ stdenv.lib.optional javaSupport jdk;
|
||||||
|
|
||||||
patches = [ ./no-usr-local-search-paths.patch ];
|
patches = [ ./no-usr-local-search-paths.patch ];
|
||||||
|
|
||||||
@ -47,7 +49,7 @@ stdenv.mkDerivation rec {
|
|||||||
CC=$(type -p cc)
|
CC=$(type -p cc)
|
||||||
CXX=$(type -p c++)
|
CXX=$(type -p c++)
|
||||||
FC="${gfortran}/bin/gfortran" F77="${gfortran}/bin/gfortran"
|
FC="${gfortran}/bin/gfortran" F77="${gfortran}/bin/gfortran"
|
||||||
JAVA_HOME="${jdk}"
|
${stdenv.lib.optionalString javaSupport "JAVA_HOME=\"${jdk}\""}
|
||||||
RANLIB=$(type -p ranlib)
|
RANLIB=$(type -p ranlib)
|
||||||
R_SHELL="${stdenv.shell}"
|
R_SHELL="${stdenv.shell}"
|
||||||
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user