spark: export the assembly to /share/java, fixes #11961

So that we can compile applications that depend on spark
This commit is contained in:
Samuel Rivas 2015-12-26 18:30:28 +01:00 committed by Rok Garbas
parent 704e923ad5
commit d72fad9ee4

View File

@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
untarDir = "${name}-bin-cdh4";
installPhase = ''
mkdir -p $out/{lib/${untarDir}/conf,bin}
mkdir -p $out/{lib/${untarDir}/conf,bin,/share/java}
mv * $out/lib/${untarDir}
sed -e 's/INFO, console/WARN, console/' < \
@ -37,6 +37,7 @@ stdenv.mkDerivation rec {
for n in $(find $out/lib/${untarDir}/bin -type f ! -name "*.*"); do
makeWrapper "$n" "$out/bin/$(basename $n)"
done
ln -s $out/lib/${untarDir}/lib/spark-assembly-*.jar $out/share/java
'';
meta = {