spark: build without mesos support
The mesos package has been broken for >9 months, it doesn't make much sense to have the spark package depend on it (and thus being broken) by default.
This commit is contained in:
parent
a7f5a00411
commit
0f4b32d0ca
@ -1,6 +1,5 @@
|
|||||||
{ stdenv, fetchzip, makeWrapper, jre, pythonPackages, coreutils, hadoop
|
{ stdenv, fetchzip, makeWrapper, jre, pythonPackages, coreutils, hadoop
|
||||||
, RSupport? true, R
|
, RSupport? true, R
|
||||||
, mesosSupport ? true, mesos
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
@ -12,12 +11,11 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
src = fetchzip {
|
src = fetchzip {
|
||||||
url = "mirror://apache/spark/${pname}-${version}/${pname}-${version}-bin-without-hadoop.tgz";
|
url = "mirror://apache/spark/${pname}-${version}/${pname}-${version}-bin-without-hadoop.tgz";
|
||||||
sha256 = "1a9w5k0207fysgpxx6db3a00fs5hdc2ncx99x4ccy2s0v5ndc66g";
|
sha256 = "1a9w5k0207fysgpxx6db3a00fs5hdc2ncx99x4ccy2s0v5ndc66g";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ makeWrapper jre pythonPackages.python pythonPackages.numpy ]
|
buildInputs = [ makeWrapper jre pythonPackages.python pythonPackages.numpy ]
|
||||||
++ optional RSupport R
|
++ optional RSupport R;
|
||||||
++ optional mesosSupport mesos;
|
|
||||||
|
|
||||||
untarDir = "${pname}-${version}-bin-without-hadoop";
|
untarDir = "${pname}-${version}-bin-without-hadoop";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -37,8 +35,6 @@ stdenv.mkDerivation rec {
|
|||||||
${optionalString RSupport
|
${optionalString RSupport
|
||||||
''export SPARKR_R_SHELL="${R}/bin/R"
|
''export SPARKR_R_SHELL="${R}/bin/R"
|
||||||
export PATH=$PATH:"${R}/bin/R"''}
|
export PATH=$PATH:"${R}/bin/R"''}
|
||||||
${optionalString mesosSupport
|
|
||||||
''export MESOS_NATIVE_LIBRARY="$MESOS_NATIVE_LIBRARY"''}
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
for n in $(find $out/lib/${untarDir}/bin -type f ! -name "*.*"); do
|
for n in $(find $out/lib/${untarDir}/bin -type f ! -name "*.*"); do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user